简体   繁体   中英

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?

在此处输入图片说明

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();

first solution: you can set this property of the form

在此处输入图片说明

and another solution :

Did you try parent form and child form?

Set Parent of the forms, So they will be open as child of your main form

For Example(In the main form when You want to open another form) :

FrmChild frmChild= new FrmChild ();
frmChild.Parent = this;
FrmChild.Show();

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM