Click here to Skip to main content
Click here to Skip to main content
Alternative Tip

Hiding the form from alt-tab menu

By , 19 Dec 2010
Rate this:
Please Sign up or sign in to vote.
Tried it in VB.NET Winforms app, but no luck. It's still shown in the alt-tab menu:
 
Protected Overrides ReadOnly Property CreateParams As System.Windows.Forms.CreateParams
       Get
           Dim cp As CreateParams = MyBase.CreateParams
           cp.ExStyle = cp.ExStyle Or &H80
           Return cp
       End Get
   End Property
 
An easier way to do this is:
 
Me.FormBorderStyle = FormBorderStyle.SizableToolWindow
Me.ShowInTaskbar = False
 
Just like it mentions in this article, The original author's... since the tip doesn't work, I hate to say "it looks like you've just copied & pasted" D'Oh! | :doh:

License

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

About the Author

meaningoflights
Web Developer
Australia Australia
No Biography provided

Comments and Discussions

 
GeneralYes, the original code won't work as it is posted. You can s... Pinmvpprerakpatel9-Dec-10 21:25 
Yes, the original code won't work as it is posted. You can see the description now.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web04 | 2.8.140421.2 | Last Updated 19 Dec 2010
Article Copyright 2010 by meaningoflights
Everything else Copyright © CodeProject, 1999-2014
Terms of Use
Layout: fixed | fluid