Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Back to full screen
Message
From
11/07/2023 01:01:39
 
 
To
10/07/2023 18:46:08
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
01686808
Message ID:
01686811
Views:
48
Yourform.Windowstate = 2
https://vfphelp.com/vfp9/_5wn12pmlm.htm

>Got it, thank you
>
>I use:
>Thisform.thisobj=CREATEOBJECT("Form")
>thisform.thisobj.application.top=0
>thisform.thisobj.application.left=0
>
>However, it's not goes to 0,0, there is still gap
>
>I figure it out if I click the max button, it will position it nicely.
>What is the variable to open the form to the max?
>
>Thanks in advance
>
>Jerry
>
>
>
>
>
>>>If I drag the form to the middle (display1.jpg), is there an easy way to put it back (display2.jpg) instead of manually drag it back?
>>>
>>>Thanks for the help
>>
>>Not sure whether you're talking about an individual form or a whole application. In either case, you can set Left and Top to 0. You just need access to the form or to the main form for the application, respectively. Within a form, you can use ThisForm or, if you have a Form Manager object, grab the reference from that.
>>
>>For the application, if you're running in the main VFP window (that is, you don't have SCREEN=OFF in your Config.FPW), you can use _VFP. If you're in a top-level, you should have a reference to that somewhere.
>>
>>Tamar
Previous
Reply
Map
View

Click here to load this message in the networking platform