C#学习笔记(8)鼠标键盘事件处理
来源:互联网 发布:新歌2014网络红歌 编辑:程序博客网 时间:2024/06/05 00:13
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;namespace demo9{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_KeyDown(object sender, KeyEventArgs e) { MessageBox.Show("按动的键为:" + e.KeyCode.ToString()); } private void Form1_MouseDown(object sender, MouseEventArgs e) { //响应鼠标的不同按键 if (e.Button == MouseButtons.Left) { MessageBox.Show("按动鼠标左键!"); } if (e.Button == MouseButtons.Middle) { MessageBox.Show("按动鼠标中键!"); } if (e.Button == MouseButtons.Right) { MessageBox.Show("按动鼠标右键!"); } } private void Form1_MouseMove(object sender, MouseEventArgs e) { this.Text = "当前鼠标的位置为:( " + e.X + " , " + e.Y + ")"; } }}
0 0
- C#学习笔记(8)鼠标键盘事件处理
- 鼠标/键盘事件 学习笔记
- C#处理鼠标和键盘事件
- C#处理鼠标和键盘事件
- c#处理鼠标和键盘事件
- Unity3D学习笔记-输入输出-键盘事件、鼠标事件
- linux 处理键盘 鼠标事件
- linux 处理键盘 鼠标事件
- 鼠标和键盘处理事件
- C#模拟键盘鼠标事件
- C#模拟键盘鼠标事件
- C#模拟键盘鼠标事件
- 学习SWT的笔记 --键盘事件处理
- OSG学习笔记9-处理键盘事件
- C#处理鼠标事件
- C# WinForm 鼠标事件 键盘事件
- Qt 学习(8)Qt Creator中鼠标键盘事件的处理实现自定义鼠标指针(转)
- C#处理鼠标和键盘事件
- VMWare10.0虚拟机安装Mac OS X
- 智能车随想
- 我的android(第十四天)
- 读书笔记--看见--2014年03月22日
- 《Java编程周末提高班(第一期)》写在第二周——在路上…… 2014.03.22
- C#学习笔记(8)鼠标键盘事件处理
- 题目1465:最简真分数
- 静态成员变量和静态成员函数(static)
- 智能视频分析视频库
- 编程之美3.3 计算字符串的相似度(我的失败思路)
- plsql开发链接
- vector容器与iterator容器相结合的程序分析题
- 连载:面向对象葵花宝典:思想、技巧与实践(9) - “抽象类” 详解
- NYOJ 236