0

问题从 3 周开始。我正在使用 Visual Studio 构建项目,并且使用了 Visual Basic。我没有任何错误地保存了项目,但是当我再次重新打开项目时,我无法看到表单并收到 6 个错误和 3 条消息。

我正在使用主题并且主题没有任何错误,因为我使用它没有任何问题并且所有人都使用它。他们称之为主题(YouTube Theme)

错误:

消息 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. 创建一个新的空项目。
  2. 逐渐小心地将代码从旧(损坏的)项目转移到新项目中,或者逐个文件,甚至逐行。
  3. 当错误出现时,您有一个解决方案。当错误未出现时,您面临 VS 的内部问题,但问题仍然解决。

或者,您可以尝试其他方式:

  1. 制作项目的副本。
  2. 删除文件或行,直到错误消失。
  3. 问题线将被确定,您有一个解决方案。

祝你好运。

于 2013-10-12T14:52:28.513 回答
0

在我在这里发帖之前我试过这个..它没有用,例如:(GhostTheme)我将它添加到课堂上没有任何错误,正如你在上面看到的那样,它给了我 25 个错误和一些消息

以及旧项目

建议是:

创建一个新的空项目。逐渐小心地将代码从旧(损坏的)项目转移到新项目中,或者逐个文件,甚至逐行。当错误出现时,您有一个解决方案。当错误未出现时,您面临 VS 的内部问题,但问题仍然解决。

我以前做过,但是当我保存它并重新打开项目时,它会告诉我错误

所以我认为唯一的方法也是最后一种方法是格式化我的电脑并重新安装所有东西,因为问题不是在格式化我的电脑之前和之后我认为它会完成

于 2013-10-12T16:05:24.487 回答