HOWTO: Drag a Form by a Child ControlLast reviewed: October 13, 1997Article ID: Q154006 |
The information in this article applies to:
SUMMARYA window can be moved by clicking the Title bar and then dragging the window to the required position. This technique will not work if the window doesn't have a Title bar. Using the SendMessage API, you can achieve this effect by dragging a control on the form and the form will move with the control. Below is a code sample showing how to accomplish this.
MORE INFORMATION
REFERENCESFor more information, please see the following articles in the Microsoft Knowledge Base:
ARTICLE-ID: Q103062 TITLE : How to Move Controls at Run Time By Using Drag and Drop ARTICLE-ID: Q113904 TITLE : How to Move a Control Across a Form at Run Time ARTICLE-ID: Q79884 TITLE : How to Move Controls Between Forms in VB for Windows Keywords : PrgOther vb416 VB4WIN Version : WINDOWS:4.0 Platform : NT WINDOWS Issue type : kbhowto |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |