[求助]小妹请教VB.NET问题
| 在VB.NET 中,如何编写代码在点击A窗体的button按钮的时候,关闭当前窗体并且打开新窗体?? 我写的如下,但是程序不执行 me.close() dim from1 as new from from1.show |
| 在VB.NET 中,如何编写代码在点击A窗体的button按钮的时候,关闭当前窗体并且打开新窗体?? 我写的如下,但是程序不执行 me.close() dim from1 as new from from1.show |
2006-01-20 09:07
2006-01-20 10:12
和那个没有关系,只是个变量,我可以把窗体的name 定义成from
2006-01-20 10:25
| 在VB.NET 中,如何编写代码在点击A窗体的button按钮的时候,关闭当前窗体并且打开新窗体?? 我写的如下,但是程序不执行 me.close() dim from1 as new from |
dim from1 as new from
这里定义不对吧
dim from1 as form

2006-01-20 16:56
2006-01-20 17:03
2006-01-22 20:17
应该对定义的窗体对象实例话。
如果你想显示的你已经有的窗体(如已有窗体From1)
则:
DIM FRM AS NEW FORM1
FRM.SHOW()
OK!
2006-01-24 13:17