12-10-12, 12:21 PM
اخي العزيز
واضف بعده
ثم اضف هذا الكود في تصريح
Form1_MouseDown
واضف هذا الكود في تصريح
Form1_MouseMove
VS2015
قد استطعت التوصل فقط الى طريقة تحريك الفورم
ابحث عن السطر
قد استطعت التوصل فقط الى طريقة تحريك الفورم
ابحث عن السطر
كود :
mParent = frmواضف بعده
كود :
AddHandler frm.MouseDown, AddressOf Form1_MouseDown
AddHandler frm.MouseMove, AddressOf Form1_MouseMoveثم اضف هذا الكود في تصريح
كود :
mLastLocation = e.Locationواضف هذا الكود في تصريح
كود :
If (mMovable) AndAlso (e.Button = MouseButtons.Left) Then
Dim pos As Point = Me.PointToScreen(New Point(e.X, e.Y))
pos.Offset(-mLastLocation.X, -mLastLocation.Y)
Me.Location = pos
End If