问题描述
当我使用Visual Studio表单设计器创建一个完美的OK表单时,为什么它似乎总是因为没有明显的原因而惹恼我?例如,当我右键单击代码并选择View Designer时,会出现一堆Designer
错误。
我有一个说:
变量'ProductGroupsLookup'未声明或从未分配过。
所以我转到代码并说明:
Me 。GroupBoxPubType.Controls.Add( 我 .ProductGroupsLookup)
所以我走到设计师代码的脚下,发现:
朋友
带事件 ProductGroupsLookup
作为
Sage。 MMS.Controls.ProductGroupsLookup
在设计师代码的初始化部分我找到:
Me 。ProductGroupsLookup =
新建
Sage。 MMS.Controls.ProductGroupsLookup()
这都是由Visual Studio生成的,为什么它会一直出错?
Mike
When I have a perfectly OK form that I created using Visual Studio form designer why does it always seem to go screwy on me for no apparent reason? For example, when I right-click in the code and select View Designer is comes up with a bunch of Designer errors.
I have one that says:
The variable 'ProductGroupsLookup' is either undeclared or was never assigned.
So I go to the code and the line says:
Me.GroupBoxPubType.Controls.Add(Me.ProductGroupsLookup)
So I go to the foot of the designer code and I find:
FriendWith EventsProductGroupsLookupAsSage.MMS.Controls.ProductGroupsLookup
and in the initialisation section of the designer code I find:
Me.ProductGroupsLookup =NewSage.MMS.Controls.ProductGroupsLookup()
This is all generated by Visual Studio so why does it keep erroring?
Mike
这篇关于Visual Studio表单设计器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!