当前位置:网站首页>Combined use of C WinForm form form event and delegate
Combined use of C WinForm form form event and delegate
2022-07-27 07:50:00 【Jinan medical applet champion】
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 WinFormsApp1
{
public partial class Form1 : Form
{
private TextBox box; // The text box
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
//label1.Text = " I am a button press event ";
}
private void button2_Click(object sender, EventArgs e)
{
}
private void button1_MouseDown(object sender, MouseEventArgs e)
{
label1.Text = " I am a button press event ";
}
private void button2_MouseUp(object sender, MouseEventArgs e)
{
label2.Text = " I am the button release event ";
}
private void Click events (object sender, EventArgs e)
{
label1.Text = "";
label2.Text = "";
}
}
}
effect

边栏推荐
- STM32_ Find the cause of entering hardfault_ Handler's function
- Clickhouse notes 1 | introduction, features | installation and use based on centos7 system | common data types | mergetree table engine | SQL operation
- SQL labs SQL injection platform - level 1 less-1 get - error based - Single Quotes - string (get single quote character injection based on errors)
- 企业架构驱动的数字化转型!
- Redisson 3.17.5 发布,官方推荐的 Redis 客户端
- Shell functions and arrays exercises
- npm的使用
- Lua迭代器
- 【小程序】uniapp发行微信小程序上传失败Error: Error: {'errCode':-10008,'errMsg':'invalid ip...
- 杂谈:手里有竿儿,肩上有网,至于背篓里有多少鱼真的重要吗?
猜你喜欢

【pytorch】ResNet18、ResNet20、ResNet34、ResNet50网络结构与实现

大家节日快乐哈

Temperature and humidity measurement and display device based on Arduino

【已解决】单点登录成功SSO转发,转发URL中带参数导致报错There was an unexpected error (type=Internal Server Error, status=500)

C#委托的使用案例

API 版本控制【 Eolink 翻译】

剑指 Offer 58 - I. 翻转单词顺序

ADC噪声全面分析 -02- ADC 噪声测量方法和相关参数

【已解决】新版Pycharm(2022)连接服务器进行上传文件报错“Command rsync is not found in PATH”,无法同步文件

这次龙蜥展区玩的新花样,看看是谁的 DNA 动了?
随机推荐
[stonedb class] introductory lesson 1: popular science of database knowledge
Systematic explanation of unit testing: mockito
面试复盘五
Closed hash and open hash resolve hash conflicts
Help send a recruitment, base all over the country. If you are interested, you can come and have a look
Gossip: it's really important to have a rod in your hand and a net on your shoulder. As for how many fish are in the basket?
RestTemplate 连接池配置
glGetUniformLocation,glUniform4f
【Golang】golang开发微信公众号网页授权功能
MCU multi-level menu
HU相关配置
Showdoc vulnerability learning - cnvd-2020-26585 (arbitrary file upload)
What about idea Chinese garbled code
shell企业面试题练习
模仿大佬制作的宿舍门禁系统(三)
Happy holidays, everyone
Am I delayed by the code... Unfortunately, I became a programmer
擎创科技加入龙蜥社区,共建智能运维平台新生态
如何在电脑端登陆多个微信
【万字长文】吃透负载均衡,和阿里大牛的技术面谈