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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple basic form question 1

Status
Not open for further replies.

wujen

Programmer
Aug 21, 2001
79
0
0
US
Hello,

I have a mainmenu(mnMain) with a menu option Search(mnMainSearch) on the main form(frmMain). I need to know how to have on click function of the menu option of mnMainSearch to have the Search form(frmSearch) to be loaded with focus; frmMain still in the background with out focus.

Aaron

ps I know how to do this with VB6 not C# :D
 
Well, you still can double click on the menu item to open the code window. Then you need to make an instance of your search form, like:

frmSearch fs = new frmSearch();
fs.Show();



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top