概要
cscの作法、調べてみた。
mouseイベント使ってみた。
写真
サンプルコード
using System;
using System.Windows.Forms;
using System.Drawing;
class form1: Form {
form1() {
Text = "mouse";
ClientSize = new Size(300, 300);
this.MouseMove += new MouseEventHandler(mouseMove);
}
void mouseMove(object sender, MouseEventArgs e) {
Text = "mouse: (" + e.X + ", " + e.Y + ")";
}
[STAThread]
public static void Main() {
Application.Run(new form1());
}
}
以上。
