Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: Visual Basic
Expertise: Beginner
May 8, 1997



Building the Right Environment to Support AI, Machine Learning and Deep Learning


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 the Name property. In the Command Button's Click event, execute the following code:

   SecondFormName.Show 1

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

That line will cause the second window to go away.
DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date