Hi, I want to have my form always Topmost (it follows mouse cursor), even above URL window in IE for example. That works when I add Topmost=true or BringToFront() to OnPaint method. However, everything is OK but clicking on buttons in main form (the app consists of Form1 for options and transparent form2, following the mouse). If the form2 is always set to topmost, the clicks on form1 are not registered. I have not found any workaround, i.e. something like if there is a control with higher Z coordinate, set this to topmost? Hope it makes sense, thanks!
A:
You can use SendMessage to pass mouse clicks to the form underneath. See:
http://www.experts-exchange.com/Programming/Programming_Languages/C_Sharp/Q_21549799.html
(Scroll to the bottom to see the answers).
MusiGenesis
2009-10-07 12:00:21
I have probably reached the limit of views, gonna to register free trial here.
Petr
2009-10-07 12:15:12