开发者

Hide main form initially...Possible? (VB language)

开发者 https://www.devze.com 2023-01-07 19:50 出处:网络
Is there a way to start a Windows Forms in (VB language) application w开发者_JS百科ith the main window not visible? Then later on when an external event occurs, I want to display the form.

Is there a way to start a Windows Forms in (VB language) application w开发者_JS百科ith the main window not visible? Then later on when an external event occurs, I want to display the form. How can I accomplish this?

Thanks.


Hint: See the 'Visible' property.


Initially you just put:

Load SuperAmazingForm

..then when you want to display the form, simply call its Show method as normal.

Doing it this way allows you to interact with the form's objects without the user being aware of it.


It depends on if you are doing this in Excel/Word or Access. If you are using Excel/Word then the Load MyForm syntax works. However, Access uses it's own variation of the standard UserForm. To load a form hidden you can do:DoCmd.OpenForm "MyAccessForm", WindowMode:=acHidden.

0

精彩评论

暂无评论...
验证码 换一张
取 消