-
FullScreen mode
Hi all,
I use the following code to get to FullScreen mode:
With Me
.WindowState=FormWindowState.Maximised
.Text=""
.ControlBox=False
End With
This achieves the desired effect BUT....
when I try to close the form with code, it keeps re-opening. Even if I set the WindowState to Normal and the ControlBox to True it does not help.
If I omit .ControlBox=False then the form will close from code. It seems as if once the ControlBox has been set to false, the effect it has on the Close event is permanent. I have tried this out in a separate Project and this effect is absent, so I suppose it is something in my application, but I cannot see why.
Anyone ever had this happen?
Regards,