0

問題は3週間から始まります。私はビジュアルスタジオを使用してプロジェクトを構築しており、ビジュアルベーシックを使用していました。プロジェクトをエラーなしで保存しましたが、プロジェクトを再度開いたときにフォームを表示できず、6 つのエラーと 3 つのメッセージが表示されました。

私はテーマを使用していましたが、問題なく使用していて、すべての人が使用していたので、テーマにバグはありません。彼らはテーマ(YouTubeテーマ)と呼んだ

エラー:

メッセージ 1

Could not find type 'YouTube_Downloader.YTTheme'.  Please make sure that the assembly that contains this type is referenced.  If this type is a part of your development project, make sure that the project has been successfully built using settings for your current platform or Any CPU.   
0   0   

メッセージ 2

Could not find type 'YouTube_Downloader.YTButton'.  Please make sure that the assembly that contains this type is referenced.  If this type is a part of your development project, make sure that the project has been successfully built using settings for your current platform or Any CPU.
    0   0   

メッセージ 3

The variable 'YtTheme1' is either undeclared or was never assigned. C:\Users\Home\documents\visual studio 2012\Projects\YouTube Downloader\YouTube Downloader\AboutBox.Designer.vb  107 0

エラー 4

Unable to open module file 'C:\Users\Home\AppData\Local\Temp\.NETFramework,Version=v4.5.AssemblyAttributes.vb': System Error &H80070002&    C:\Users\Home\AppData\Local\Temp\.NETFramework,Version=v4.5.AssemblyAttributes.vb   1   1   YouTube Downloader

エラー 5

Handles clause requires a WithEvents variable defined in the containing type or one of its base types.  C:\Users\Home\documents\visual studio 2012\Projects\YouTube Downloader\YouTube Downloader\YouTubeDownloader.vb  18  73  YouTube Downloader

エラー 6

Handles clause requires a WithEvents variable defined in the containing type or one of its base types.  C:\Users\Home\documents\visual studio 2012\Projects\YouTube Downloader\YouTube Downloader\YouTubeDownloader.vb  24  73  YouTube Downloader

エラー 7

Handles clause requires a WithEvents variable defined in the containing type or one of its base types.  C:\Users\Home\documents\visual studio 2012\Projects\YouTube Downloader\YouTube Downloader\YouTubeDownloader.vb  28  73  YouTube Downloader

エラー 8

Handles clause requires a WithEvents variable defined in the containing type or one of its base types.  C:\Users\Home\documents\visual studio 2012\Projects\YouTube Downloader\YouTube Downloader\YouTubeDownloader.vb  32  75  YouTube Downloader

エラー 9

Handles clause requires a WithEvents variable defined in the containing type or one of its base types.  C:\Users\Home\documents\visual studio 2012\Projects\YouTube Downloader\YouTube Downloader\YouTubeDownloader.vb  74  75  YouTube Downloader

プロジェクトを開いたときに、問題の画像を追加したフォーム デザインが表示されません [URL=http://imageshack.us/photo/my-images/7/9gam.png/][IMG]http://img7 .imageshack.us/img7/457/9gam.png[/IMG][/URL]

http://img7.imageshack.us/img7/457/9gam.png

助けてください !!

問題はありませんでしたが、(Ghost Theme) を使用すると問題が発生し、25 個のエラーと 1 個の警告が表示されます。

エラー:

エラー 1

Option Strict On disallows implicit conversions from 'Integer' to 'UInteger'.   C:\Users\Home\AppData\Local\Temporary Projects\GhostTheme\Class1.vb 1909    34  GhostTheme

エラー 2

Option Strict On disallows implicit conversions from 'Double' to 'Integer'. C:\Users\Home\AppData\Local\Temporary Projects\GhostTheme\Class1.vb 2216    75  GhostTheme

エラー 3

Option Strict On disallows implicit conversions from 'Double' to 'Integer'. C:\Users\Home\AppData\Local\Temporary Projects\GhostTheme\Class1.vb 2226    75  GhostTheme

エラー 4

Option Strict On disallows implicit conversions from 'Double' to 'Integer'. C:\Users\Home\AppData\Local\Temporary Projects\GhostTheme\Class1.vb 2236    75  GhostTheme

エラー 5

Option Strict On disallows implicit conversions from 'Double' to 'Integer'. C:\Users\Home\AppData\Local\Temporary Projects\GhostTheme\Class1.vb 2313    91  GhostTheme

エラー 6

Option Strict On disallows implicit conversions from 'Single' to 'Integer'. C:\Users\Home\AppData\Local\Temporary Projects\GhostTheme\Class1.vb 2363    20  GhostTheme

エラー 7

Option Strict On disallows implicit conversions from 'System.Drawing.Point' to 'System.Drawing.Size'.   C:\Users\Home\AppData\Local\Temporary Projects\GhostTheme\Class1.vb 2419    19  GhostTheme

エラー 8

Option Strict On disallows implicit conversions from 'Single' to 'Integer'. C:\Users\Home\AppData\Local\Temporary Projects\GhostTheme\Class1.vb 2475    20  GhostTheme

エラー 9

Option Strict On disallows implicit conversions from 'System.Drawing.Point' to 'System.Drawing.Size'.   C:\Users\Home\AppData\Local\Temporary Projects\GhostTheme\Class1.vb 2512    19  GhostTheme

エラー 10

Option Strict On disallows implicit conversions from 'Single' to 'Integer'. C:\Users\Home\AppData\Local\Temporary Projects\GhostTheme\Class1.vb 2538    33  GhostTheme

エラー 11

Option Strict On disallows implicit conversions from 'Single' to 'Integer'. C:\Users\Home\AppData\Local\Temporary Projects\GhostTheme\Class1.vb 2574    107 GhostTheme

エラー 12

Option Strict On disallows implicit conversions from 'Single' to 'Integer'. C:\Users\Home\AppData\Local\Temporary Projects\GhostTheme\Class1.vb 2585    28  GhostTheme

エラー 13

Option Strict On disallows implicit conversions from 'Single' to 'Integer'. C:\Users\Home\AppData\Local\Temporary Projects\GhostTheme\Class1.vb 2587    13  GhostTheme

エラー 14

Option Strict On disallows implicit conversions from 'Object' to 'System.Drawing.Image'.    C:\Users\Home\AppData\Local\Temporary Projects\GhostTheme\Class1.vb 2601    30  GhostTheme

警告 15

property 'ForeColor' shadows an overridable method in the base class 'TabControl'. To override the base method, this method must be declared 'Overrides'.   C:\Users\Home\AppData\Local\Temporary Projects\GhostTheme\Class1.vb 2614    21  GhostTheme

エラー 16

Option Strict On disallows implicit conversions from 'Object' to 'System.Drawing.Image'.    C:\Users\Home\AppData\Local\Temporary Projects\GhostTheme\Class1.vb 2689    30  GhostTheme

エラー 17

Option Strict On disallows implicit conversions from 'Object' to 'String'.  C:\Users\Home\AppData\Local\Temporary Projects\GhostTheme\Class1.vb 2714    20  GhostTheme

エラー 18

Option Strict On disallows implicit conversions from 'Double' to 'Integer'. C:\Users\Home\AppData\Local\Temporary Projects\GhostTheme\Class1.vb 2754    81  GhostTheme

エラー 19

Option Strict On disallows implicit conversions from 'Double' to 'Integer'. C:\Users\Home\AppData\Local\Temporary Projects\GhostTheme\Class1.vb 2805    85  GhostTheme

エラー 20

Option Strict On disallows implicit conversions from 'Double' to 'Integer'. C:\Users\Home\AppData\Local\Temporary Projects\GhostTheme\Class1.vb 2858    103 GhostTheme

エラー 21

Option Strict On disallows implicit conversions from 'Double' to 'Integer'. C:\Users\Home\AppData\Local\Temporary Projects\GhostTheme\Class1.vb 2859    67  GhostTheme

エラー 22

Option Strict On disallows implicit conversions from 'Single' to 'Integer'. C:\Users\Home\AppData\Local\Temporary Projects\GhostTheme\Class1.vb 2864    29  GhostTheme

エラー 23

Option Strict On disallows implicit conversions from 'Object' to 'String'.  C:\Users\Home\AppData\Local\Temporary Projects\GhostTheme\Class1.vb 2866    26  GhostTheme

エラー 24

Option Strict On disallows implicit conversions from 'Object' to 'String'.  C:\Users\Home\AppData\Local\Temporary Projects\GhostTheme\Class1.vb 2869    30  GhostTheme

エラー 25

Option Strict On disallows implicit conversions from 'Object' to 'System.Drawing.Image'.    C:\Users\Home\AppData\Local\Temporary Projects\GhostTheme\Class1.vb 2890    30  GhostTheme

エラー 26

Option Strict On disallows implicit conversions from 'Double' to 'Integer'. C:\Users\Home\AppData\Local\Temporary Projects\GhostTheme\Class1.vb 2906    81  GhostTheme

私もそれについて写真を追加します。

http://im36.gulfup.com/0OcH9.bmp

[url=http://www.gulfup.com/?0RKgoK][img]http://im36.gulfup.com/0OcH9.bmp[/img][/url]

4

2 に答える 2

1

そのような場合、通常、他のすべての原因となるエラーは 1 つだけです。コード全体を慎重に検索しないと、問題の場所を見つけるのは困難です。

アドバイスは次のとおりです。

  1. 新しい空のプロジェクトを作成します。
  2. コードを古い (破損した) プロジェクトから新しいプロジェクトに、ファイルごと、または行ごとに、徐々に慎重に転送します。
  3. エラーが表示されたら、解決策があります。エラーが表示されない場合、VS の内部問題に直面していますが、それでも問題は解決されています。

または、別の方法で試すこともできます:

  1. プロジェクトのコピーを作成します。
  2. エラーが消えるまでファイルまたは行を削除します。
  3. 問題のある行が特定され、解決策が得られます。

幸運を。

于 2013-10-12T14:52:28.513 に答える
0

ここに投稿する前にこれを試してみましたが、うまくいきませんでした。たとえば、(GhostTheme)エラーなしでクラスに追加していましたが、上記のように25個のエラーといくつかのメッセージが表示されます

古いプロジェクトと同様に

アドバイスは次のとおりです。

新しい空のプロジェクトを作成します。コードを古い (破損した) プロジェクトから新しいプロジェクトに、ファイルごと、または行ごとに、徐々に慎重に転送します。エラーが表示されたら、解決策があります。エラーが表示されない場合、VS の内部問題に直面していますが、それでも問題は解決されています。

前にやったのですが、保存してプロジェクトを再度開くと、エラーについて教えてくれます

だから私は唯一の方法と最後の方法は私のPCをフォーマットしてすべてのものを再インストールすることだと思います.問題は私のPCをフォーマットする前後になかったので、それは完了すると思います.

于 2013-10-12T16:05:24.487 に答える