I have two forms: Form1 and Form2.
I want to show Form2 as dialog when Form1 has been loaded. I mean when Form1 is loaded and visible to the user, then Form2 is showed as dialog.
With the Form1_Load event it first show the Form2 as dialog and then show Form1.
How can I first show Form1 and then Form2 as dialog?
Use the
Shownevent ofform1to load theform2as follows:That way first
form1will be displayed and raise theShownevent and insideShownevent,form2will be loaded and displayed.