标签:each for his data- pac 体验 parent cursor 标题
using System; using System.Windows.Forms; namespace Window{ class Window{ static void Main(){ Form form = new Form(); form.Click += new EventHandler(form_Click);//注冊窗口单击事件 Application.Run(form); } static void form_Click(object sender,EventArgs e){ Form form = (Form)sender; form.Text = "Mouse Position X="+ Cursor.Position.X +",Y=" + Cursor.Position.Y; } } }实现的是:编译以后运行EXE得到一个可最大化最小化也能够关闭的窗口。而且单击窗口能够在标题上看到当前鼠标点击过的坐标 别说我非常浅显,事实上我也知道。总也奈不住的写下一点一滴。
标签:each for his data- pac 体验 parent cursor 标题
原文地址:http://www.cnblogs.com/gavanwanggw/p/6978585.html