masaioki.ono
جمعه 24 بهمن 1393, 23:18 عصر
من یه فرم ساختم که نان بوردر هست یعنی دکمه های بالایی که شامل بستن و ماکسیمایز و مینیمایز رو برداشتم حالا چطور میتونم فرم رو تکون بدم ؟
سورس پایین رو پیدا کردم اما نتونستم باهاش کار کنم لطفا یکی کمک کنه
I made a label, as a replacement of the Titlebar... and added this code:
Code::::::
Option Explicit
Dim MouseDownX As Long
Dim MouseDownY As Long
Private Sub lblTitleBar_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
MouseDownX = X
MouseDownY = Y
End Sub
Private Sub lblTitleBar_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = vbLeftButton Then
Me.Move Me.Left + X - MouseDownX, Me.Top + Y - MouseDownY
End If
End Sub
سورس پایین رو پیدا کردم اما نتونستم باهاش کار کنم لطفا یکی کمک کنه
I made a label, as a replacement of the Titlebar... and added this code:
Code::::::
Option Explicit
Dim MouseDownX As Long
Dim MouseDownY As Long
Private Sub lblTitleBar_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
MouseDownX = X
MouseDownY = Y
End Sub
Private Sub lblTitleBar_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = vbLeftButton Then
Me.Move Me.Left + X - MouseDownX, Me.Top + Y - MouseDownY
End If
End Sub