Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Moving a form programmatically
Message
 
To
12/07/2002 12:49:47
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00678118
Message ID:
00678162
Views:
16
In addition to solution which Sergey point you to, for all VFP versions including 7 you can add:
DECLARE INTEGER GetActiveWindow IN WIN32API,
and use:
SendMessage(GetActiveWindow(), 0x112, 0xF012, 0x0) to address the Window Handle the very same way.


>Hi All,
>
>Here's an odd one... I have a form in which I turn off the title bar and set the BorderStyle to 0-None. I now want to be able to drag/move this form by using the mouse just as if it had a title bar. I tried some routines using the MouseDown & MouseMove events of the form but got some very quirky results. The form seemed to jump back and forth.
>
>Anyone have a good idea?
>
>Thanks!
Previous
Reply
Map
View

Click here to load this message in the networking platform