Click here to Skip to main content
15,898,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to add dim functionality to the form in VB.net, like when it happens in Windows vista or Windows 7 when a message box is displayed in foreground, the background form is dimmed?
Posted
Updated 4-May-10 2:20am
v3

xiroH4ck3r wrote:
hehehe


For heaven's sake do not do this again. It is annoying. At least for me.

You can add a transparent panel to your form or change the opacity of the form if that is good for you.
 
Share this answer
 
Comments
HimanshuJoshi 4-May-10 8:20am    
I edited the question and removed those annoying things.
I use a similar approach, only I use a form, make it semitransparent using the opacity, and show it using ShowDialog() to make it application modal. In the form constructor I resize it and position it over the original form.

It's quite similar to the other answer, but this way I don't "clutter" my original form with unnecessary panels or other controls, and logic to make the "dim" disappear can be placed separately in the other form's code...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900