why showdialog crate a new icon on task bar

  • Thread starter Thread starter Weikang Ding
  • Start date Start date
W

Weikang Ding

In VB.net

Dim fm As frmLogin = New frmLogin
fm.ShowDialog()

Why there are two icons created in the task bar, which is more like two
separate programs are running. Although when I click the first icon the 2nd
model form will popup.
 
* "Weikang Ding said:
In VB.net

Dim fm As frmLogin = New frmLogin
fm.ShowDialog()

Why there are two icons created in the task bar, which is more like two
separate programs are running. Although when I click the first icon the 2nd
model form will popup.

That's by design. You may want to change the form's 'ShowInTaskbar'
property or 'FormBorderStyle' property.
 
Back
Top