Multiple-forms WinForm app with only 1 Taskbar button?

  • Thread starter pedestrian via DotNetMonster.com
  • 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...
 
G

Guest

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.
 
P

pedestrian via DotNetMonster.com

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top