# Transparent Click-thru windows

- Link: https://saguiitay.com/transparent-click-thru-windows/
- Published: 2007-09-06T12:14:00+03:00
- Author: Itay

It is often useful to provide the user with information on the screen, without interfering
his work. Usually, you would just create a window with a somewhat lower opacity,
allowing the user to see what’s beneath your window. However, this window will still
receive all the normal windows events, and mostly, the user’s mouse clicks.To prevent
this, all you have to do is override the window’s `CreateParams` accessor, and add
to the `ExStyle` property the `WS_EX_TRANSPARENT` value.

Let’s have a look:

    ```notranslate
    protected override CreateParams CreateParams
    {
        get
        {
            CreateParams cp = base.CreateParams;
            cp.ExStyle = 0x00000020;
            return cp;
        }
    }
    ```

### _Related_
