I want to create a WinForm which has a normal frame but a large portion of the application transparent. I've run into an issue whereby after a maximize and restore down of a window, the frame border is no longer clickable -- clicks simply pass through to the application behind my application. I've been able to reproduce this with a trivial WinForms app by doing the following:
- Create a new WinForms application.
- Set the TransparencyKey and the BackgroundColor of the default form to the same color.
- Run the app.
- Click the maximize button of the running form.
- Click restore down.
- Form border no longer clickable (though sometimes I seem to get a 1px clickable border along one side).
There's a ton on the web about transparent forms and controls, but I found nothing on this bug. Given its simplicity to reproduce, I doubt I'm the first to run into this. Any ideas for getting around it?