Skip to content

Instantly share code, notes, and snippets.

@Willy-Kimura
Created February 2, 2018 13:34
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/c012443fdff9da515eb583e209fc0899 to your computer and use it in GitHub Desktop.
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.
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