|
-
Jan 9th, 2004, 12:59 PM
#1
Thread Starter
PowerPoster
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,
Last edited by taxes; Jan 9th, 2004 at 01:05 PM.
Taxes
The more I learn about VB.NET the more I like dBaseIII Plus
The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|