c# - Transparent, Click-Through Forms but can move byTitle bar -


I was raised a code, apply a Topmost, click through transparent and code-although form:

  public enum GWL {ExStyle = -20} public enum WS_EX {transparent = 0x20, layered = 0x80000} public enum LWA {ColorKey = 0x1, alpha = 0x2} [DllImport ( "user32.dll", EntryPoint = "GetWindowLong")] public static extern int GetWindowLong (IntPtr hWnd, GWL nIndex); [DllImport ( "user32.dll", EntryPoint = "SetWindowLong")] public static extern int SetWindowLong (IntPtr hWnd, GWL nIndex Int dwNewLong); [DllImport ( "user32.dll", Antrypoint = "Setleyerd Vindoattyubets")] public static bool Akstrn Setleyerdvindoattivets (Intpet Acdbludblyuend, Int Krki, byte alpha, Eldblyue Divflags); Protected Override Zero Oceans (EventArgues E) {Base.On Showa (E); Integer WL = GetWindowLong (this.Handle, GWL.ExStyle); Wl = wl | 0x80000 | 0x20; Setwindo Long (This. Handle, GWL.exstyle, WL); SetLayeredWindowAttributes (this.Handle, 0, 128, LWA.Alpha); }  

The problem here, all forms can not click on it (click-because of open code), how click-F form, but excluding the title bar (click on the user Can you move the title bar to the second place)?

I have a method, this code can solve my problem (click-though), but in text it is not ambiguous in the text, and the title bar is also not ambiguous

this.BackColor = Color.Magenta; this. Transparency = color Magenta;


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -