I have several dialogs in my app and under some circumstances, the user must be prevented from using any of the controls of certain dialogs. What I want is to cover the dialog with a translucent gray color so it looks evenly disabled, and I want to disable all the controls on the dialog. If I disable the dialog, then the user cannot close or move the dialog. My controls are in a panel which I can disable,but different controls have different looks when they are disabled, and some do not look any different than when they are enabled. So I had the idea to cover the controls with some translucent color so they all look grayed out in the same way.
I know how to draw a bitmap with the correct alpha, but can I draw this over all the controls in a dialog?
Can anyone suggest a good way to do this?