http://www.runescape.com/game.ws
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
End Class
Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None
#Region "Formmove"
Dim Point As New System.Drawing.Point()
Dim U, N As Integer
#End Region
Private Sub Panel1_MouseMove(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Panel1.MouseMove
If e.Button = MouseButtons.Left Then
Point = Control.MousePosition
Point.X = Point.X - (U)
Point.Y = Point.Y - (N)
Me.Location = Point
End If
End Sub
Private Sub Panel1_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Panel1.MouseDown
U = Control.MousePosition.X - Me.Location.X
N = Control.MousePosition.Y - Me.Location.Y
End Sub
Private Sub Label1_MouseMove(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Label1.MouseMove
If e.Button = MouseButtons.Left Then
Point = Control.MousePosition
Point.X = Point.X - (U)
Point.Y = Point.Y - (N)
Me.Location = Point
End If
End Sub
Private Sub Label1_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Label1.MouseDown
U = Control.MousePosition.X - Me.Location.X
N = Control.MousePosition.Y - Me.Location.Y
End Sub
End
Me.WindowState = FormWindowState.Minimized
Public Class Form1
#Region "Formmove"
Dim Point As New System.Drawing.Point()
Dim U, N As Integer
#End Region
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None
End Sub
Private Sub Panel1_MouseMove(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Panel1.MouseMove
If e.Button = MouseButtons.Left Then
Point = Control.MousePosition
Point.X = Point.X - (U)
Point.Y = Point.Y - (N)
Me.Location = Point
End If
End Sub
Private Sub Panel1_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Panel1.MouseDown
U = Control.MousePosition.X - Me.Location.X
N = Control.MousePosition.Y - Me.Location.Y
End Sub
Private Sub Label1_MouseMove(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Label1.MouseMove
If e.Button = MouseButtons.Left Then
Point = Control.MousePosition
Point.X = Point.X - (U)
Point.Y = Point.Y - (N)
Me.Location = Point
End If
End Sub
Private Sub Label1_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Label1.MouseDown
U = Control.MousePosition.X - Me.Location.X
N = Control.MousePosition.Y - Me.Location.Y
End Sub
'The Close Button:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
End
End Sub
'The Minimize Button:
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Me.WindowState = FormWindowState.Minimized
End Sub
End Class
![=]](/forum/images/emotions/=].gif)
