Disable input for window

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way to disable mouse input for topmost windows form window? That
is, if I click on this window, the window underneath still get the click
message.

Thank you in advance.
 
You do not have to "diable" anything on the top form, just make your other
form a subscriber to the top form's Click event.

In your calling form:

TopFormName frm = new TopFormName();
frm.Click += new EventHandler(frm_Click);
..... {more code}

private void frm_Click(object sender, System.EventArgs e)
{
Console.WriteLine("Here");
}

HTH

John Scragg
 
The other "forms" have no knowledge of this form and they could be any other
application not written in .net.

What I am trying to achieve is to let my top form not catch any mouse event
as if it does not exist, and any other windows under it would still receive
the mouse event.
 

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

Back
Top