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.

See also  11 Effective Keyword Research Tools and Techniques

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist