问题一:如何判断一个button是否被mouse_down
问题二:我在mouse_down里面把time.enabled设置为true,然后通过time刷新抓取坐标放在textbox.text里面
为什么刷新不出来
问题二:我在mouse_down里面把time.enabled设置为true,然后通过time刷新抓取坐标放在textbox.text里面
为什么刷新不出来
解决方案 »
- 各位大侠帮个忙。。
- 设置控件父容器异常,求高手解释
- The specified string is not in the form required for an e-mail address.
- 关于"友元程序集"里类型为public和internal的类
- 一个功能2种方法都能实现,请大家说说你认为那种方法好,及理由
- 请问这是什么原因造成的?
- 怎样获取WebService的方法列表和参数,就像在浏览器中访问的那样
- label控件就会挡住textbox控件,
- 如何把标题栏放在窗口下面?
- c# 中如何用索引控制同名控件??
- 不得不来CSDN问了,C#发邮件问题!!!!急!
- 求解绘图仪绘制大数据图片内存不足问题!
问题一:如何判断一个button是否被mouse_down
mouse_down 事件里
触发以后 记录一下
button_mouseUp()设置标识 Timer.Enabled=false;
在timer的time事件中获取坐标
{
Timer a = new Timer();
a.Interval = 10;
a.Tick += new EventHandler(a_Tick);
a.Enabled = true;
} void a_Tick(object sender, EventArgs e)
{
this.Text = Cursor.Position.ToString();
}这样用的
{
Timer a = new Timer();
a.Interval = 10;
a.Tick += new EventHandler(a_Tick);
a.Enabled = true;
} void a_Tick(object sender, EventArgs e)
{
this.Text = Cursor.Position.ToString();
}这样用的