mirror of
https://github.com/hama3254/Crunchyroll-Downloader-v3.0.git
synced 2024-11-14 20:25:06 +01:00
49 lines
1.3 KiB
VB.net
49 lines
1.3 KiB
VB.net
|
Public Class FirstStartup
|
|||
|
Private Sub FistStartup_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
|||
|
Me.Icon = My.Resources.icon
|
|||
|
|
|||
|
End Sub
|
|||
|
|
|||
|
#Region " Move Form "
|
|||
|
|
|||
|
' [ Move Form ]
|
|||
|
'
|
|||
|
' // By Elektro
|
|||
|
|
|||
|
Public MoveForm As Boolean
|
|||
|
Public MoveForm_MousePosition As Point
|
|||
|
|
|||
|
Public Sub MoveForm_MouseDown(sender As Object, e As MouseEventArgs) Handles _
|
|||
|
MyBase.MouseDown ' Add more handles here (Example: PictureBox1.MouseDown)
|
|||
|
|
|||
|
If e.Button = MouseButtons.Left Then
|
|||
|
MoveForm = True
|
|||
|
Me.Cursor = Cursors.NoMove2D
|
|||
|
MoveForm_MousePosition = e.Location
|
|||
|
End If
|
|||
|
|
|||
|
End Sub
|
|||
|
|
|||
|
Public Sub MoveForm_MouseMove(sender As Object, e As MouseEventArgs) Handles _
|
|||
|
MyBase.MouseMove ' Add more handles here (Example: PictureBox1.MouseMove)
|
|||
|
|
|||
|
If MoveForm Then
|
|||
|
Me.Location = Me.Location + (e.Location - MoveForm_MousePosition)
|
|||
|
End If
|
|||
|
|
|||
|
End Sub
|
|||
|
|
|||
|
Public Sub MoveForm_MouseUp(sender As Object, e As MouseEventArgs) Handles _
|
|||
|
MyBase.MouseUp ' Add more handles here (Example: PictureBox1.MouseUp)
|
|||
|
|
|||
|
If e.Button = MouseButtons.Left Then
|
|||
|
MoveForm = False
|
|||
|
Me.Cursor = Cursors.Default
|
|||
|
End If
|
|||
|
|
|||
|
End Sub
|
|||
|
|
|||
|
|
|||
|
#End Region
|
|||
|
|
|||
|
End Class
|