Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windowstate not working
Message
From
12/01/2017 05:57:07
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01646560
Message ID:
01646564
Views:
63
>Hi there,
>
>I have set the windowstate-property of a form to 2 - Maximized but the window is not maximized, It keeps its size, After having already serached a bit I tried changing the showwindow-proprty to top-level-form, looked that Lockscreen is set to .F. and set the minwidth and minheight-props back to -1. I tried it in the init-event of the form by setting "thisform.windowstate = 2" but nothing works. If I click on the maximize-button it resizes correctly. What have I missed?
>
>Thanks in advance
>
>Thomas
>
>P.S.: Hust for curiousity I tried setting windowstate to minimze but that does not work either.

Where do you set it? In PEM sheet? Probably a code in load, init or activate is setting it back to normal.

Update: Put a temporary commandbutton with click code:
thisform.WindowState = 2
for testing.
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform