Skip to content

Instantly share code, notes, and snippets.

@Willy-Kimura
Last active February 2, 2018 13:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Willy-Kimura/2a4fca8aecc78eb187832a344871bc22 to your computer and use it in GitHub Desktop.
Save Willy-Kimura/2a4fca8aecc78eb187832a344871bc22 to your computer and use it in GitHub Desktop.
Events designed to modify the Form's cursor at movements during runtime.
Imports System
Imports System.Windows.Forms
Namespace BunifuDragForm
Partial Public Class Form1
Inherits Form
Public Sub New()
InitializeComponent()
End Sub
Private Sub panel1_MouseDown(ByVal sender As Object, ByVal e As MouseEventArgs)
Me.Cursor = Cursors.SizeAll
End Sub
Private Sub panel1_MouseUp(ByVal sender As Object, ByVal e As MouseEventArgs)
Me.Cursor = Cursors.Default
End Sub
End Class
End Namespace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment