Click here to Skip to main content
15,917,862 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
SQL
how that form can be moved by simply pushing the contents of the form


Thanks
Posted
Comments
OriginalGriff 31-Mar-14 6:59am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
Perhaps an example of what you are trying to do would help?
Use the "Improve question" widget to edit your question and provide better information.
Peter Leow 31-Mar-14 6:59am    
???
Jhony Spd 31-Mar-14 7:21am    
sory bro. i can't speak english.
Dave Kreskowiak 31-Mar-14 10:57am    
Are you asking how to move the form by clicking anywhere in the form itself and not just the title bar??

The JET 14-Apr-14 10:24am    
Which VB version do you use? VB6/VBA or VB.NET

1 solution

Subclass the form and make it think you are clicking the caption area when you are in fact clicking on the form...

VB
Protected Overrides Sub WndProc(ByRef e As Message)
   MyBase.WndProc(e)
   If e.Msg = &H84 AndAlso e.Result = New intptr(&H1) Then e.Result = New intptr(&H2)
End Sub
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900