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!
TopMost 窗口―― 只有在“更高”Z订购窗口的情况下才设定?
原标题:TopMost window - set only if there is "higher" Z ordered window?
问题回答
您可使用SendMessage通过 mo点击形式。 见:
http://www.experts-change.com/Programing/Programing_Languages/C_Sharp/Q_21549799.html。
(到底看答案)。
相关问题
热门标签
- winforms
- combobox
- fogbugz
- java
- date
- internationalization
- asp.net
- iis
- url-rewriting
- urlrewriter
- c#
- enums
- ocaml
- haxe
- algorithm
- string
- viewstate
- .net
- c++
- c
- symbol-table
- mysql
- database
- postgresql
- licensing
- migration
- vb.net
- vb6
- declaration
- vb6-migration
- python
- psycopg2
- backup
- vmware
- virtualization
- gnu-screen
- authentication
- desktop
- excel
- xll
- cultureinfo
- regioninfo
- oracle
- client
- session
- download
- html
- virtual
- constructor
- scenarios
- perl
- full-text-search
- javascript
- ajax
- testing
- oop
- inheritance
- vim
- encapsulation
- information-hiding