【发布时间】:2020-10-03 21:09:44
【问题描述】:
在 VB.NET 中,我可以有多个表单并使用以下代码显示一个:
Form2.Show() ' Form2 is the class name itself!! not an instance..
它是怎么允许的?
【问题讨论】:
在 VB.NET 中,我可以有多个表单并使用以下代码显示一个:
Form2.Show() ' Form2 is the class name itself!! not an instance..
它是怎么允许的?
【问题讨论】:
您的项目在名为My 的命名空间中使用Forms 对象。在那里,Visual Basic 创建表单的默认实例:
这似乎发生在幕后某处。我无法在我的项目中找到发生这种情况的文件,但我看到在我的可执行文件中使用了My.Forms。
【讨论】: