The main form that is not displayed in the taskbar

What could be the reasons why the main application form is not displayed in the TaskBar?

The ShowInTaskbar property is set to true, but the form does not appear there if, after starting the application and until the main form appears, I switch to another window. The form exists, but until I reduce the applications above to make them visible, it will not appear in the taskbar.

UPDATE. The form does not have an owner.

+4
source share
4 answers

I added form.Activate () after form.Show (). Now it always jumps when it is fully loaded, and is not lost on some other screens.

Although this is not a solution, but a crutch, answers are welcome anyway.

+5
source

Check if your main form has a parent pointer or owner. In any case, this would exclude him from the taskbar in his own right. It is also worth trying TopMost = true.

0
source

I had the same problem with one project that I wrote. No icon appears on the taskbar unless I forced Windows to update it.

It was a challenge

this.MinimumSize = new Size (wid, len);

There was a problem in Form_Load.

0
source

I had a similar problem when the program started from the installer (InstallMate in my case). I eventually posed the problem before changing the text of the title of the form (Text) in the Form1_Load () method. When I moved this name by changing the text just below InitializeComponent (); bit, the problem is gone.

Hope this helps someone else, despite the specifics of my circumstances.

0
source

All Articles