cover dialog with a translucent bitmap and disable dialog

Posted on 2003-02-23
Medium Priority
Last Modified: 2008-03-17
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?  
Question by:bryanwells
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment

Accepted Solution

man068 earned 150 total points
ID: 8012668
add a image to the form so that it covers the whole panel. initially make it invisible/disabled. then enable it whenever you want other controls to be not visible. this is just an idea.


Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question