Hi there..
I am trying to set some launch conditions in a windows form and if the conditions are false automatically close the form.
I thought that i could use something like:
This however just pops up my form and then hangs (I can't close the form by clicking on the X in the control box)
Can anyone think of a way that I can verify certain criteria within the form that will automatically close if not met?
Thanks in adv..
I am trying to set some launch conditions in a windows form and if the conditions are false automatically close the form.
I thought that i could use something like:
Code:
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
Me.Show()
'Add any initialization after the InitializeComponent() call
Dim t As Boolean = False
If t <> True Then Me.Close()
End Sub
This however just pops up my form and then hangs (I can't close the form by clicking on the X in the control box)
Can anyone think of a way that I can verify certain criteria within the form that will automatically close if not met?
Thanks in adv..