Re: How to hide form from Alt-Tab dialog
- From: "Jakob Christensen" <jch@xxxxxxxxxxxxxxxx>
- Date: Wed, 24 Aug 2005 04:54:01 -0700
You need to change the style of your Window. You can do this by overriding
the CreateParams property of your form. The following should do the trick:
private static uint WS_POPUP = 0x80000000;
private static uint WS_EX_TOPMOST = 0x00000008;
private static uint WS_EX_TOOLWINDOW = 0x00000080;
protected override CreateParams CreateParams
{
get
{
CreateParams cp = base.CreateParams;
cp.Style = unchecked((int) WS_POPUP);
cp.ExStyle = (int) WS_EX_TOPMOST + (int) WS_EX_TOOLWINDOW;
// Set location
cp.X = 100;
cp.Y = 100;
return cp;
}
}
HTH, Jakob.
--
http://www.dotninjas.dk
http://www.powerbytes.dk
"Dotnetjunky" wrote:
> ShowInTaskBar only hide the form from the TaskBar, but not from the Alt-Tab
> dialog
>
>
>
> "Danver Heung" wrote:
>
> > this.ShowInTaskBar = false;
> >
> > "Dotnetjunky" <me@xxxxxxxxxxxxx> дÈëÏûÏ¢ÐÂÎÅ
> > :6857A38A-EA25-4440-8DED-3A08D22902AD@xxxxxxxxxxxxxxxx
> > > Hi all,
> > >
> > > I'm creating a borderless form by setting this.FormBorderStyle =
> > > FormBorderStyle.None
> > >
> > > When I show the form, if users press Alt-Tab to switch among applications,
> > > they can still see it. How can I disable that ?
> > >
> > > Any help is very much appreciated.
> > >
> > > Kinh Luan
> >
> >
> >
.
- References:
- How to hide form from Alt-Tab dialog
- From: Dotnetjunky
- Re: How to hide form from Alt-Tab dialog
- From: Danver Heung
- Re: How to hide form from Alt-Tab dialog
- From: Dotnetjunky
- How to hide form from Alt-Tab dialog
- Prev by Date: ReportGrid.Rows(i).Visible = False VC Currency Manager
- Next by Date: Re: Display Bitmap from HttpStream
- Previous by thread: Re: How to hide form from Alt-Tab dialog
- Next by thread: Problem with mnemonics
- Index(es):
Relevant Pages
|