Search code examples
c#winformstaskbar

Taskbar Issue for My App


When I click on my Winforms app then its forms are opened in separate section in Taskbar with default C# icon. How can I solve this issue?

enter image description here

Update:

At first I open my login form as bellow:

Application.Run(new frmLogin());

Then I open my main form from the login form as bellow:

this.Hide();
frmMain frmMain = new frmMain();
frmMain.Show();

Solution

  • This sounds like a system problem. Here are 3 solutions:

    1. Restart your computer.

    2. Restart explorer.exe or File Explorer. How to do it.

    3. Unpin then re-pin your program on the taskbar.