When open Form2 from Form1 a messageBox should appear but this code is not working.
Any ideas to what I could be doing wrong.
Code:private: System::Void Form1::Form2::OnShow(System::Object^ sender, System::EventArgs^ e) { MessageBox:: Show("This window just opened"); }