chinniwhites
August 18th, 2005, 09:54 AM
I have a button in my program that when pushed should pop up a small window with menu of different options. What is the best way to do this.
Thanks in advance
Thanks in advance
|
Click to See Complete Forum and Search --> : How to create a pop up windows in a windows form? chinniwhites August 18th, 2005, 09:54 AM I have a button in my program that when pushed should pop up a small window with menu of different options. What is the best way to do this. Thanks in advance g_gili August 18th, 2005, 02:37 PM I have a button in my program that when pushed should pop up a small window with menu of different options. What is the best way to do this. Thanks in advance Add another dailog in your resorce view than create a class for it, load the menu or what you wants. Then event handler to your button: ex. void CYourClass::OnButton() { CYourNewDialog m_showpopup; m_showpopup.DoModal(); } NoHero August 19th, 2005, 09:53 AM I have a button in my program that when pushed should pop up a small window with menu of different options. What is the best way to do this. Thanks in advance Create a new class inheriting from System::Windows::Form and use ShowDialog() member. This will cause your dialog form to run modal as a pop dialog. codeguru.com
Copyright WebMediaBrands Inc., All Rights Reserved. |