Question ShowInTaskbar Property on Windows 8

Neyja

New member
Joined
Feb 3, 2014
Messages
4
Programming Experience
Beginner
Hello everybody,
I'm new on this forum and i wanted to start by asking you
Why can i see my form "form1" on taskbar in Windows8 even if I set "ShowInTaskbar" property to false ?
Thanks in advance ,
Neyja
 
If that is the case then something in your project or on your system is broken because I have no such issue. Try this:

1. Create a new Windows Forms Application project.
2. Set the ShowInTaskbar property of the form to False.
3. Add a Button and double-click it to create a Click event handler.
4. In the event handler, add this code:
Me.ShowInTaskbar = Not Me.ShowInTaskbar
Now run the project. Does an icon appear in the Taskbar for your form? If you click the Button repeatedly, does that icon appear and disappear?
 
Back
Top