Multiple-forms WinForm app with only 1 Taskbar button?

  • Thread starter Thread starter pedestrian via DotNetMonster.com
  • Start date Start date
P

pedestrian via DotNetMonster.com

I'm creating a multiple-forms windows application. When I launch second form
(says, frmSecond) from the main from the Main form(frmMain) with ShowDialog()
method, the taskbar add another button for the second form, thus, if I then
open the third form (frmThird), the taskbar add yet another button.

My intention is to only show the Main form (frmMain) button in taskbar since
there is only one application and all other forms launched from main form
subsequently with ShowDialog() should not show in taskbar since all are
belong to the same application.

Is it possible? Thanks for replying...
 
pedestrian via DotNetMonster.com said:
I'm creating a multiple-forms windows application. When I launch second form
(says, frmSecond) from the main from the Main form(frmMain) with ShowDialog()
method, the taskbar add another button for the second form, thus, if I then
open the third form (frmThird), the taskbar add yet another button.

My intention is to only show the Main form (frmMain) button in taskbar since
there is only one application and all other forms launched from main form
subsequently with ShowDialog() should not show in taskbar since all are
belong to the same application.

Before opening frmSecond, set frmSecond.ShowInTaskBar = false. Same with
frmThird, etc.
 
Yes... absolutely... Thanks...

Mini-Tools Timm said:
I'm creating a multiple-forms windows application. When I launch second form
(says, frmSecond) from the main from the Main form(frmMain) with ShowDialog()
[quoted text clipped - 5 lines]
subsequently with ShowDialog() should not show in taskbar since all are
belong to the same application.

Before opening frmSecond, set frmSecond.ShowInTaskBar = false. Same with
frmThird, etc.

--
Regards,
Pedestrian, Penang.

Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/Forums.aspx/winform/200608/1
 
Back
Top