Search code examples
c#popupborderaero

Aero Glass borders on popup windows in C#


I would like to create pop-up windows (of a fixed size) like this:

pop-up windows

in my application using C#. I've looked into NativeWindow but I am not sure if this is the right way to do it. I want a window to behave exactly like the volume control or "connect to" window in Windows 7.

How can I accomplish this?


Solution

  • I was able to accomplish this:

    if (m.Msg == 0x84 /* WM_NCHITTEST */) {
        m.Result = (IntPtr)1;
        return;
    }
    base.WndProc(ref m);