Click here to Skip to main content
12,395,548 members (57,206 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

6.3K views
1 bookmarked
Posted

Hiding the form from alt-tab menu

, 19 Dec 2010 CPOL
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 ...
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)

Share

About the Author

meaningoflights
Web Developer
Australia Australia
No Biography provided

You may also be interested in...

Comments and Discussions

 
GeneralYes, the original code won't work as it is posted. You can s... Pin
prerakpatel9-Dec-10 21:25
mvpprerakpatel9-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    Praise Praise    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 | Terms of Use | Mobile
Web02 | 2.8.160721.1 | Last Updated 19 Dec 2010
Article Copyright 2010 by meaningoflights
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid