MouseDown and ShowDialog

  • Thread starter Thread starter wavemill
  • Start date Start date
W

wavemill

Hello!

It's for a problem when i create a new form.

For example:

private void Accueil_MouseDown(object sender,
System.Windows.Forms.MouseEventArgs e)
{
if(e.X>12 && e.Y>203 && e.X<212 && e.Y<253)
{
// ouverture de la form option.
Cursor.Current = Cursors.WaitCursor;
Option opt = new Option();
opt.ShowDialog();
Cursor.Current = Cursors.Default;
}
}

My form opt is open, but i can't access to it. When i click i open my
first form(accueil).The form opt is not active, but she is draw.

Have got any idea?

Best regards!

Wavemill
 
Back
Top