Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ShowInTaskbar = False --> Default Icon 1

Status
Not open for further replies.

davewelsh

Programmer
Jun 26, 2001
71
CA
I don't want my main form to show in the taskbar. I want to run a NotifyIcon off of it and then use a second form for my main user interaction.

When the form is set to ShowInTaskbar = False, you get a different icon in the "alt-tab menu (what's this called?)". I wanted my own icon to show here (or none at all). How can I either force my own icon to show up or just hide it all together?
 
Dave,

This is little tricky and I guess this is a problem with .NET and I also had the same issue before and after lots of research I found that, if we set the "FormBorderStyle" of the window to "FixedToolWindow" that weird window icon disappears from the Alt+TAB list. I wasn't able change the Alt+TAB app icon to the one I want so i decided to take it out. Let me know if this works for you.

-Kris
 
Thanks. That gives me a place to start. The only thing now, is that the first form (the one I don't want anyone to see in the taskbar, alt-tab menu, etc.) has a border around it. The size is still 0, 0, but it has a blue border with a small title bar.

I set ControlBox = False and that shrunk it somewhat, but it still had a bit of the title bar. I then set the Text = "" and now I have a little 8 x 8 grey box. :) That's the best I've gotten to so far.

I didn't want to adjust the opacity because I believe systems before W2k don't support that attribute.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top