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!

Open new dialog from main dialog

Status
Not open for further replies.

TeSSeO

Programmer
Feb 18, 2002
14
0
0
ES
Hi there, I´m doing an application with an initial Dialog where you find two buttons. I have also design another two dialogs. How can I open any of the new dialogs when I press any of the two buttons in the main dialog.
Thanks,
tSSo.
 
in the function called by the button event write this

--------------
yourDlg dlg;
dlg.DoModal();
--------------
look at the help about DoModal to see what you can do with the return value...
 
Ok, thnks a lot I´ve done that and it works pretty well...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top