After you know the name of the form that you want to display, you need to use BASIC command to open the form, such as the following: Dim oForm As FormName oForm = New FormName oForm.Show oForm = Nothing In case the above four lines of BASIC code look confusing, here’s a quick explanation on what they do: 1. The Solution Explorer window lists the names of all the forms that make up your Visual Basic.NET program, such as a form named frmMain.vb. To make the other forms of your program appear (or disappear), you have to use BASIC code to tell your program, “Okay, now put this particular form on the screen and hide this other form out of sight.” Opening a form Before you can open (or close) a form, you need to know the specific name of the form you want to open or close. ![]() By Having multiple forms as part of your Visual Basic.NET program may be nice, but when your Visual Basic.NET program runs, it normally displays one form.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
June 2023
Categories |