Darken a parent form when a modal form is in front of it

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Folks,

I am trying to figure out a way to darken the parent or main form of an
application when a wizard or modal form is called from within it. What I am
trying to do is duplicate what Windows XP does when a user does a Start, Shut
Down. The desktop darkens or turns to a dark gray and the focus on the "Shut
Down Windows" dialog window is dramatic.

I am using C#, but can translate from VB.NET.

Have you done this, or can point my research to the right direction?

Thank you very much for your time,

Elsa
 
Maybe you could put a semi-transparent black borderless form over the form you want to grey out. I haven't tried it, but that was the first thing that popped in my head.
 
I was trying what Jamie suggested with some success (thanks, Jamie!), but
this is exactly what I need. I'm a CodeProject fan and didn't see this
article. I'll have to subscribe to the newsletter...

Thank you so much for taking of your time to bring it to my attention!

Elsa
 
Back
Top