Matt Gerrans
Posts: 1153
Nickname: matt
Registered: Feb, 2002
|
|
Re: vc++.net dialog based application
|
Posted: Nov 17, 2004 11:46 AM
|
|
Since this is a C# forum, my first suggestion would be to do this in C#.
However, it may be you have some compelling reason to use managed C++ instead (if so, could you post it here? I'd be interested to know what it is (I would guess the most likely reason is you've already learned C++ and don't have the time or inclination to learn C# at the moment, but there may be more interesting reasons...)).
Anyway, assuming you know how to create the form and just want to display it modally, you would do something like this:
private: System::Void menuItemAbout_Click(System::Object * sender, System::EventArgs * e)
{
AboutForm * aboutForm = new AboutForm();
aboutForm->ShowDialog(this);
}
|
|