dcsimg
Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
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

WEBINAR:

On-Demand

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


Controlling Execution Flow

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

Answer:
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.

 

 

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