InitializeComponent 出错,
代码从VS2003升成VS2005时窗体InitializeComponent出错,单步调试都不进InitializeComponent过程.急.............
__________________________________________________________________________
up
__________________________________________________________________________
打开Form1.Designer.cs这个文件,找到InitializeComponent函数,查看是否有问题,如果看不出来,可以在函数第一行设置断点,然后直接运行程序调试看一下为什么出错。
__________________________________________________________________________
看不出来什么问题,设了断点,但是连InitializeComponent都不进就报错.
__________________________________________________________________________
Public Sub New()
MyBase.New()
''This call is required by the Windows Form Designer.
InitializeComponent()
''Add any initialization after the InitializeComponent() call
End Sub
在InitializeComponent上设断点,运行到这里之后一单步运行就出错.