The system method is called mainly because it takes a long time for the mouse to be developed. It takes a long time to find the method and stay here to commemorate it.
Public class Grid: GoldSoft. Inf. UI. Controls. Grid. Grid
{
/// <Summary>
/// Required designer variables.
/// </Summary>
Private System. ComponentModel. Container components = null;
Public Grid ()
{
// This call is required by the Windows. Forms Form Designer.
InitializeComponent ();
// TODO: add any initialization after the InitComponent call
This. MouseMove + = new MouseEventHandler (n_MouseMove );
}
Private void n_MouseMove (object sender, System. Windows. Forms. MouseEventArgs e)
{
This. Cursor = Cursors. SizeWE;
// The above is used to modify the Mouse shape. You can see it in Cursors.
Console. WriteLine ("====> Test <== (" + e. X + "," + e. Y + ")");
}
/// <Summary>
/// Clear all resources in use.
/// </Summary>
Protected override void Dispose (bool disposing)
{
If (disposing)
{
If (components! = Null)
Components. Dispose ();
}
Base. Dispose (disposing );
}
# Code generated by the region component designer
/// <Summary>
/// The designer supports the required methods-do not use the code editor
/// Modify the content of this method.
/// </Summary>
Private void InitializeComponent ()
{
Components = new System. ComponentModel. Container ();
}
# Endregion
}