Private Sub Form1_MouseMove(ByVal sender As Object, _ ByVal e As System.Windows.Forms.MouseEventArgs) _ Handles MyBase.MouseMove
'マウス左ボタンのプレス状態 If e.Button = MouseButtons.Left Then With Screen.PrimaryScreen.Bounds Me.Left = Me.Left + e.X - Form_X Me.Top = Me.Top + e.Y - Form_Y End With End If End Sub
Private Sub Form1_MouseDown(ByVal sender As Object, _ ByVal e As System.Windows.Forms.MouseEventArgs) _ Handles MyBase.MouseDown
'マウスの位置を保持 Form_X = e.X Form_Y = e.Y End Sub
Private Sub objBtn_Name_Click(ByVal sender As Object, _ ByVal e As EventArgs)