加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

[VB.NET]InitializeComponent 出错,

发布时间:2020-12-16 23:48:26 所属栏目:大数据 来源:网络整理
导读:InitializeComponent 出错, 代码从VS2003升成VS2005时窗体InitializeComponent出错,单步调试都不进InitializeComponent过程.急............. __________________________________________________________________________ up _______________

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上设断点,运行到这里之后一单步运行就出错.

Private Sub InitializeComponent() Me.components = New System.ComponentModel.Container 在这里设断点都不运行到这里. __________________________________________________________________________ 自己顶 __________________________________________________________________________ 新建一个窗体然后把代码复制过去看一下是不是可以解决了。 __________________________________________________________________________ 复制过去也不行 为什么进不了InitializeComponent呢 __________________________________________________________________________ 问题解决了,还有没有接分的没有? 明天给分. __________________________________________________________________________

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读