当前位置:网站首页>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

linux能不能安装sqlserver

Happy holidays, everyone

Demo submit a program and obtain ALV data of the program

DASCTF2022.07赋能赛密码wp

IDEA中文乱码怎么办

C#委托的使用案例

10000 word parsing MySQL index principle -- InnoDB index structure and reading

【万字长文】吃透负载均衡,和阿里大牛的技术面谈

C# 中的转译字符'/b'
随机推荐
Solidity智能合约开发 — 3.3-solidity语法控制结构
【已解决】单点登录成功SSO转发,转发URL中带参数导致报错There was an unexpected error (type=Internal Server Error, status=500)
服务器网络测试的方法
SQL labs SQL injection platform - level 1 less-1 get - error based - Single Quotes - string (get single quote character injection based on errors)
Day111.尚医通:集成NUXT框架、前台页面首页数据、医院详情页
Temperature and humidity measurement and display device based on Arduino
【StoneDB Class】入门第一课:数据库知识科普
Clickhouse notes 1 | introduction, features | installation and use based on centos7 system | common data types | mergetree table engine | SQL operation
Shell Scripts相关
Bash: sudo: command not found in container
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?
MySQL table name area in Linux is not case sensitive
实用的新药研发项目管理平台
如何更新pip3?和Running pip as the ‘root‘ user can result in broken permissions and conflicting behaviour
Shell loop exercise
Interview reply V
ChromeDriver下载-自用
反弹shell是什么?反弹shell有什么用?
企业架构驱动的数字化转型!
Harbor正确密码登录不上去