Created
February 2, 2018 13:34
-
-
Save Willy-Kimura/c012443fdff9da515eb583e209fc0899 to your computer and use it in GitHub Desktop.
Events designed to modify the Form's cursor at movements during runtime.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Windows.Forms; | |
namespace BunifuDragForm | |
{ | |
public partial class Form1 : Form | |
{ | |
public Form1() | |
{ | |
InitializeComponent(); | |
} | |
private void panel1_MouseDown(object sender, MouseEventArgs e) | |
{ | |
this.Cursor = Cursors.SizeAll; | |
} | |
private void panel1_MouseUp(object sender, MouseEventArgs e) | |
{ | |
this.Cursor = Cursors.Default; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment