-
C# 返回用户点击按钮的枚举
C# 返回用户点击按钮的枚举,这个比较有点个性了,平时好像用的不多,返回用户单击按钮后的信息,需要进行用户单击的判断,代码如下:
DialogResult dr = MessageBox.Show("消息信息", "标题", MessageBoxButtons.YesNoCancel);
switch (dr)//使用switch语句判断用户点击了哪个按钮
{
case DialogResult.Cancel://如果按下了Cancel则执行下面的语句块
MessageBox.Show("按下了Cancel");
break;
case DialogResult.No://如果按下了No则执行下面的语句块
MessageBox.Show("按下了No");
break;
case DialogResult.Yes://如果按下了Yes则执行下面的语句块
MessageBox.Show("按下了Yes");
break;
}
- 2023-02-16 09:40:03下载
- 积分:1
-
AVCaptureStream
ffmpeg 采集录制视频,vs2010直接编译就可以运行(ffmpeg capture record video)
- 2018-10-09 11:25:49下载
- 积分:1
-
kolkokrzyzyk
Ring cross game witch minmax algorithm
- 2009-04-08 22:43:29下载
- 积分:1
-
ADS8568PF28335
tms320f28335驱动八路同步工业数据采样系统(tms320f28335 drive eight the synchronization industrial data sampling system)
- 2020-11-22 16:39:35下载
- 积分:1
-
edit
说明: 算法编辑距离问题,实现经典的编辑距离问题,简单的程序(Algorithmic editing distance problem, classical editing distance problem, simple program)
- 2019-05-17 17:00:26下载
- 积分:1
-
UIQ_weather
symbian UIQ下的天气预报示例代码,欢迎下载学习(symbian UIQ sample code under the weather, please download the learning)
- 2009-07-15 14:43:43下载
- 积分:1
-
qpsk
This is qpsk ber curve simulation.
- 2011-05-26 18:37:33下载
- 积分:1
-
MTK常用函数及宏定义
说明: 本文件是MTK平台开发过程中自我总结的一些常用函数,适用于在做UI层绘制的时候方便参考(This document is a common function that is self-summarizing in the development process of MTK platform. It is suitable for convenient reference when doing UI layer drawing.)
- 2019-10-14 11:50:17下载
- 积分:1
-
生物程序
这个代码用于制作生物程序,可以帮助你。这个代码不是完美的,但我希望这个代码可以帮助任何人写的生物在简单的程序
- 2022-07-21 09:01:10下载
- 积分:1
-
Surveying-program-2013
测绘程序2013,适用于各种测绘数据处理,内附程序模块及操作说明,使用方便。(2013 mapping program, mapping data can be used in a variety of computing, has attached the software interface and operating instructions.)
- 2020-09-10 06:08:02下载
- 积分:1