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

Re: Darken a parent form when a modal form is in front ... by Jamie

Jamie
Wed Mar 01 10:25:43 CST 2006

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.
---
Posted via www.DotNetSlackers.com

Re: Darken a parent form when a modal form is in front of it by Paul

Paul
Wed Mar 01 16:48:48 CST 2006

I received the 'codeproject newsletter' today which seems to have an article
on exactly what you want to achieve at the following link:

http://www.codeproject.com/article.asp?tag=9118842816338776

Hope this helps.

Paul

"Elsa" <Elsa@discussions.microsoft.com> wrote in message
news:C284CD31-2C3D-498D-8820-E03AAC536835@microsoft.com...
> 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



Re: Darken a parent form when a modal form is in front of it by Elsa

Elsa
Thu Mar 02 09:26:46 CST 2006

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

"Paul Fairless" wrote:

> I received the 'codeproject newsletter' today which seems to have an article
> on exactly what you want to achieve at the following link:
>
> http://www.codeproject.com/article.asp?tag=9118842816338776
>
> Hope this helps.
>
> Paul
>
> "Elsa" <Elsa@discussions.microsoft.com> wrote in message
> news:C284CD31-2C3D-498D-8820-E03AAC536835@microsoft.com...
> > 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
>
>
>