c# - Open second form from third form -
i have 3 forms. second displaying help, third modal dialog.
in form1 have:
form2 helpform = new form2(); form3 editform = new form3(); and menu does:
helpform.show(); i show helpform control in form3. how can that?
the kind of global , (if application grows) should accessible anywhere. maybe (kind of) singleton help!
class { private static form helpform = null; static void showhelp { if (helpform == null) helpform = generatehelpform(); //todo implement helpform.show(); } access anywhere...
// somewhere in formx help.showhelp();
Comments
Post a Comment