0

Hi everyone

I am relearning to use VB after taking classes almost 10 years ago. I am stumped on remebering how to open a file using a command button.

I have created some forms using VB that I want to activate from a main menu. I have made them .exe files and just want to navigate from one to another.

Thanks - John

3
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by bitbucket
0

Hi everyone

I am relearning to use VB after taking classes almost 10 years ago. I am stumped on remebering how to open a file using a command button.

I have created some forms using VB that I want to activate from a main menu. I have made them .exe files and just want to navigate from one to another.

Thanks - John

Assume you are using VB 6 ... use the online help or MSDN and look up SHELL command ... but why did you make the forms into separate exe files? Using your main menu form you could code:

IF someoption is selected then
LOAD frm_name
frm_name.SHOW
Endif
the above will bring the form up and it will have the focus... now for some finesse in the new form's LOAD subroutine

main_menu_form.HIDE

in the new forms Query_Unload sub

main_menu.shw

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.