如何在VB.NET中显示,加载表单? [英] How to show, load a form in VB.NET?

查看:75
本文介绍了如何在VB.NET中显示,加载表单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




这可能是一个愚蠢的问题,但我似乎无法获得表格来显示/加载
?在旧版本的VB中我会使用frmMyform.show / load

myForm等?我查看了帮助文件,它向我展示了如何在代码中创建一个

新表单,然后加载它,但我想在用户点击时加载表单

点击一个按钮..并隐藏目前有焦点的表格..?我不能

似乎在帮助文件中找到了这个简单的任务..任何帮助将是

非常高兴..


谢谢


Tim


***通过Developersdex发送 http://www.developersdex.com ***

不要只是参加USENET ......获得奖励!

Hi,

This is probably a stupid question, but I can''t seem to get a form to
show / load? In the older versions of VB I''d use frmMyform.show / load
myForm, etc? I looked at the help file and it showed me how to create a
new form in code and then load it, but I want to load a form when a user
clicks a button.. and hide the form that currently has focus..? I can''t
seem to find this simple task in the help file.. Any help would be
greatly apprecaited..

Thanks

Tim

*** Sent via Developersdex http://www.developersdex.com ***
Don''t just participate in USENET...get rewarded for it!

推荐答案

''要打开的表单名称:myFor


''点击按钮内部su $ / $
Dim frm as new myFor

myForm.Show(

希望这会有所帮助。
''Form name to be opened: myFor

''Inside on click of button su
Dim frm as New myFor
myForm.Show(
Hope this helps.


该代码只适用于新表格吗?我想打开现有表格

的名字?非常感谢..


Tim


***通过开发人员指南 http://www.developersdex .com ***

不要只是参加USENET ...得到r为它辩护!
That code is only for a new form right? I want to open an existing form
by name? Thanks so much..

Tim

*** Sent via Developersdex http://www.developersdex.com ***
Don''t just participate in USENET...get rewarded for it!


* Tim Smallwood< do ******* @ netscape.net> scripsit:
* Tim Smallwood <do*******@netscape.net> scripsit:
这可能是一个愚蠢的问题,但我似乎无法获得一个表格来显示/加载?在旧版本的VB中,我会使用frmMyform.show / load
myForm等?我查看了帮助文件,它向我展示了如何在代码中创建一个新表单,然后加载它,但我想在用户单击按钮时加载表单...并隐藏表单目前有焦点..?
This is probably a stupid question, but I can''t seem to get a form to
show / load? In the older versions of VB I''d use frmMyform.show / load
myForm, etc? I looked at the help file and it showed me how to create a
new form in code and then load it, but I want to load a form when a user
clicks a button.. and hide the form that currently has focus..?




< URL:http://www.google.de/groups?selm = u%23xQOutWDHA.2100%40TK2MSFTNGP11.phx 。 gbl>


-

Herfried K. Wagner [MVP]

< URL:http://dotnet.mvps .org />



<URL:http://www.google.de/groups?selm=u%23xQOutWDHA.2100%40TK2MSFTNGP11.phx. gbl>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


这篇关于如何在VB.NET中显示,加载表单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆