click on Form1

  • Thread starter Thread starter Anne
  • Start date Start date
A

Anne

Guru:
I have a base form say Form1, whenever I click on Form1, Form2 will display.
My question is:
while Form2 is showing, how could I catch click event on Form1?
Here is the fuction to show Form2:

privated: void DoubleClickHandler()
{
Form2->ShowDialog();
Form2->Refresh();
}
 
If you show a form with ShowDialog, all other forms in the same thread will
automatically be disabled (i.e. no more mouse event handling).
ShowDialog opens the form/dialog (modal) and does not return until the user
closes the dialog.

Use Form2.Show(), so you can plug in Form1's Click event from form2 (or from
whereever you'd like)

Niki
 
Back
Top