Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Tip of the Day
Language: Visual Basic
Expertise: Beginner
Oct 1, 1996



Application Security Testing: An Integral Part of DevOps

Controlling Execution Flow

How do you command a button to go to another form, I put like follows:
Sub Double_Click ( )
 GoTo form2
End Sub
Sub Double_Click ( )
 Load form2
End Sub
BUT NONE OF THESE WORK! How do I just command it to go to another form? Can You Help:)

The Show routine is what you are looking for. You can't really force what happens in a Windows application; however, by showing a form, you can push the user down a new path. Just say Form2.Show and the window will be loaded into memory and shown to the user. If you say Form2.Show 1 (number 1) the form will be shown modally, which means that the user has to do something to close the window before he can continue. Take a look at the help for the Show routine for more information.

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