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:
Restart your computer.
Restart explorer.exe
or File Explorer. How to do it.
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.