making a form with no border draggable?

ethicalhacker

Well-known member
Joined
Apr 22, 2007
Messages
142
Location
Delhi,India
Programming Experience
5-10
I have a form for which the border is none and I have used a background image for the form. I want the top portion to be such that when I press on it and drag the form gets dragged.
 
Use for example this code, you can limit the action by any boundary if you wish, like a dragarea rectangle where you use the Contains method: If dragarea.Contains(e.Location) ...
 
VB.NET:
dim dragarea as new rectangle(0,0,10,10)
 
Back
Top