Click here to Skip to main content
15,892,797 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I created a Dialog box appln in MFC. There's a OK button in the dialog box.I need to invoke a Menu when OK button is clicked but the dialog box should disappear.pls help me, im a beginner.
Posted
Updated 24-Aug-11 22:49pm
v2

1 solution

I am not that conversant with Microsoft Foundation Class but I guess the following Example should illuminate some kinda solution guideline.
Let us assume that when a button is clicked a dialogue box called (dialog_d) will disappear and a menu called (menu_m) will show.

CODE:
Protected void buttonOK_Click(object sender, Eventargs e)
{
dialog_d.visible = false;
menu_m.visible = true
}

NOTE: The menu must have it visible property set to false when designing the form.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900