问题从3周开始。我正在使用visual studio构建项目,我使用visual basic。 我没有任何错误地保存了项目,但是当我再次重新打开项目时,它无法看到表单并获得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]
答案 0 :(得分:1)
在这种情况下,通常只有一个错误导致所有其他错误。如果不仔细搜索代码,很难找到问题所在。
建议是:
或者你可以尝试其他方式:
答案 1 :(得分:0)
在我发布之前我试过这个.. 并且它没有用,例如:( GhostTheme)我将它添加到课堂而没有任何错误,正如你在上面看到它给了我25个错误和一些消息
以及旧项目
我以前做过,但是当我保存并重新打开项目时,它会告诉我有关错误的信息建议是:
创建一个新的空项目。逐步小心地转移代码 从旧的(损坏的)项目到新的文件或文件甚至行 按行。出现错误时,您有一个解决方案。出错时 似乎你没有面对VS的内部问题,但仍然是 问题解决了。
所以我认为唯一的方法和最后一种方法是格式化我的PC并重新安装所有东西,因为问题没有在格式化我的PC之前和之后我认为它将完成