Accessing Application Forms (Visual Basic)
The My.Forms
object provides an easy way to access an instance of each Windows Form declared in the application's project. You can also use properties of the My.Application
object to access the application's splash screen and main form, and get a list of the application's open forms.
Tasks
The following table lists examples showing how to access an application's forms.
To | See |
---|---|
Access one form from another form in an application. | My.Forms Object |
Display the titles of all the application's open forms. | OpenForms |
Update the splash screen with status information as the application starts. | SplashScreen |
See also
Співпраця з нами на GitHub
Джерело цього вмісту можна знайти на GitHub, де також можна створювати й переглядати запитання та запити на внесення змін. Докладні відомості наведено в нашому посібнику для співавторів.
Зворотний зв’язок
https://aka.ms/ContentUserFeedback.
Очікується незабаром: протягом 2024 року ми будемо припиняти використання механізму реєстрації проблем у GitHub для зворотного зв’язку щодо вмісту й замінювати його новою системою зворотного зв’язку. Докладніше:Надіслати й переглянути відгук про