I need help with closing a modeless form. When I use form.close(), nothing happens. I can open it but cannot close it or hide it or focus it.
I also need to know how to check if it is under "Show" state or not.
Please advise me on how to do it.
Below are my code:
PrivateSub ShowForm(ByVal SomeForm As Form, ByVal doThis AsString)
SomeForm.WindowState = FormWindowState.Normal
SelectCase doThis
Case "Show"
SomeForm.Show()
SomeForm.Controls.Item(0).Text = sAll
Case "Off"
SomeForm.Close() ' This line has no affect on my MODELESS FORM
EndSelect
EndSub
Thank you everyone.
dominico
I also need to know how to check if it is under "Show" state or not.
Please advise me on how to do it.
Below are my code:
PrivateSub ShowForm(ByVal SomeForm As Form, ByVal doThis AsString)
SomeForm.WindowState = FormWindowState.Normal
SelectCase doThis
Case "Show"
SomeForm.Show()
SomeForm.Controls.Item(0).Text = sAll
Case "Off"
SomeForm.Close() ' This line has no affect on my MODELESS FORM
EndSelect
EndSub
Thank you everyone.
dominico
Last edited: