Hi allwhen I open a windows form from a button loaced in the toolbar how can I hide the form if the button gets clicked again?I tried that but it does not work, it opens new windwos forms.Protected Overrides Sub OnClick()
Dim myForm As frmWindowsForm
If myForm Is Nothing Then
myForm = New frmWindowsForm
End If
If myForm.Visible Then
myForm.Hide()
Else
myForm.Show()
End If
myForm = Nothing
End Sub