I’m trying to mock some screens which is pretty simple but I do need a couple of commandbuttons to bring up another screen.For example, when the user pushes the “Detail” button I want another screen to pop up that lists all of the ingredients or askes them to fill in a form.

First of all, you have to create the second form and be sure to set theName property. In the Command Button’s Click event, execute the followingcode:

   SecondFormName.Show 1
Replace SecondFormName with the actual name of the second form. Show willdisplay the window, and the number one following show will cause the windowto show modally; that is, you have to hide that window before you doanything else. That window should have a Cancel button that calls this code:
   Unload Me
That line will cause the second window to go away.


Share the Post: