MouseDown and ShowDialog

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top