Gets or sets a value indicating whether the form is displayed in the Windows taskbar.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
If a form is parented within another form, the parented form is not displayed in the Windows taskbar.
You can use this property to prevent users from selecting your form through the Windows taskbar. For example, if you display a Find and Replace tool window in your application, you might want to prevent that window from being selected through the Windows taskbar because you would need both the application's main window and the Find and Replace tool window displayed in order to process searches appropriately.
The following code example demonstrates how to use the property to make a dialog box that is not displayed in the Windows taskbar.
Private Sub ShowInTaskBarEx() Dim myForm As New Form() myForm.Text = "My Form" myForm.SetBounds(10, 10, 200, 200) myForm.FormBorderStyle = FormBorderStyle.FixedDialog myForm.MinimizeBox = False myForm.MaximizeBox = False ' Do not allow form to be displayed in taskbar. myForm.ShowInTaskbar = False myForm.ShowDialog() End Sub