Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

2 Easy Form questions

Status
Not open for further replies.

TheRealDeal

Technical User
Nov 16, 2001
187
US
I am writing my application right now and want to be able to close out of the Run/Debug mode back to the development environment with the menu option File/Exit. What is the syntax for this?
When I am done with the application I want to retool the menu coding to literally Exit the application. Finally, what is the syntax for this?
 
I think I understand what you're asking. You want to have a menu selection in your application that exits the application when selected.

To do this, you need to learn how to use the menu editor. (To open the menu editor, make sure the form you want to work on is active and select Tools/Menu Editor.) Just read up on it if you need to; it's trivial to learn.

The code to close your application is simply Unload Me. Put that in the appropriate menu event handler. (You can also put "End" in the main form's Unload event handler.) Post back with more specific questions if they should arise.

As for your second question, you don't need to "retool" your code to get the behavior you describe. Simply compile your application. (In the development environment, go to File/Make myProject.exe.)

HTH

Bob
 
(In fact my suspicion is that the OP is trying to figure out how to get VB to work a bit like more like Access - although I could be wrong)
 
Could very well be. Perhaps we shall find out at some point. :)
 
Actually Bob, you were correct. Thank you for your response.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top