From C++ Windows Forms
-
I'm tring from form1 to click on a button to open another form2 ex:Form1: private: System::Void button1_Click(System::Object * sender, System::EventArgs * e) { TestForm *f= new TestForm(); f->Show(); } when i press this button again the same form2 will open again. How to prevent this? any solution please.
-
I'm tring from form1 to click on a button to open another form2 ex:Form1: private: System::Void button1_Click(System::Object * sender, System::EventArgs * e) { TestForm *f= new TestForm(); f->Show(); } when i press this button again the same form2 will open again. How to prevent this? any solution please.
use ShowDialog
-
I'm tring from form1 to click on a button to open another form2 ex:Form1: private: System::Void button1_Click(System::Object * sender, System::EventArgs * e) { TestForm *f= new TestForm(); f->Show(); } when i press this button again the same form2 will open again. How to prevent this? any solution please.
How about posting in the correct forum[^], where people are more likely to know the answer, as it's to do with Managed C++/CLI, you know, like you'll find in the correct forum[^]?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p