Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to detect if window is minimized
Message
 
To
28/01/1999 00:07:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00181127
Message ID:
00181607
Views:
9
John,

After much tinkering i found out that the best way to detect a minimize form is to place this code in the resize event of the form

if thisform.windowstate=1
thisform.minimizetotray()
endif

It now works in exe


Alvin Lu
www.webintel.net

>Hi Alvin!
>
>Try the WMINIMUM() function. Yeah, it's old 2.6 stuff but it just might work :-)
>
>
>>I placed a code in the deactivate method of a form
>>
>>if thisform.windowstate=1
>> =minimize to tray
>>endif
>>
>>this works when you run the form but when i compile it to an exe it doesn't. Any workaround?
>>
>>Thanks
Previous
Reply
Map
View

Click here to load this message in the networking platform