-
C# 输入界面中的各种文本框判断效果演示
这是一个实用的输入判断验证演示程序,面向C#编程环境,当用户输入的数据不正确或为空时,均会显示提示,不过这个提示是一个图标在闪烁,直到输入正确,下面是判断机制:
private void textBox2_Validating(object sender, System.ComponentModel.CancelEventArgs e)
{
if (textBox2.Text == "")//判断是否输入订货数量
{
errorProvider2.SetError(textBox2, "不能为空");//设置errorProvider2的错误提示
}
else
{
try
{
int x = Int32.Parse(textBox2.Text);//判断是否输入数字,如果不是数字会出现异常
errorProvider2.SetError(textBox2, "");// errorProvider2控件不显示任何错误信息
b = 1;//将b赋值为1
}
catch
{
//如果出现异常,设置errorProvider2控件的错误信息
errorProvider2.SetError(textBox2, "请输入一个数");
}
}
}
private void textBox3_Validating(object sender, System.ComponentModel.CancelEventArgs e)
{
if (textBox3.Text == "")//判断是否输入订货数量
{
errorProvider3.SetError(textBox3, "不能为空");//设置errorProvider3显示的错误消息
}
else
{
errorProvider3.SetError(textBox
- 2022-01-25 17:43:07下载
- 积分:1
-
此程序是用DELPHPI做的学生就业管理系统,具有查询与录入等功能...
此程序是用DELPHPI做的学生就业管理系统,具有查询与录入等功能-this procedure is done with the students DELPHPI employment management system, with input and inquiry functions
- 2023-05-11 17:15:02下载
- 积分:1
-
存储器管理实验 c++
根据虚拟内存管理的请求分页管理机制,设计页表结构,模拟实现虚存管理中逻辑地址到物理地址的转换,按照先进先出页面淘汰算法模拟实现缺页中断处理及页面置换,并输出显示执行和置换过程。
- 2023-05-02 16:25:03下载
- 积分:1
-
key
说明: 键盘控制,keypad_test,Arduino(Keyboard control,keypad_test,Arduino)
- 2020-06-18 10:20:02下载
- 积分:1
-
C语言表达式语法分析器
说明: c语言编译原理语法分析器,词法分析,lex,yacc(C lexical analyzer,flex,bison)
- 2020-07-11 22:48:53下载
- 积分:1
-
libgslcblas
GSL的配置文件,在安装配置GSL时候使用。需要和libgsl.zip配合使用(GSL configuration file used when the installation configuration GSL. Used in conjunction with the needs and libgsl.zip)
- 2013-10-10 10:50:07下载
- 积分:1
-
Nand-flash-for-Udisk
三星K9F1G08U0A的nand flash,U盘程序,实现坏块管理、均匀磨损等(this program is designed for disk based on SAMSUNG nand flash K9F1G08U0A )
- 2012-02-06 16:26:45下载
- 积分:1
-
VCvoide
VC视频对象的跟踪提取原代码(vc视频监控源码)(VC sharp,shipin gen zong)
- 2009-04-16 13:37:48下载
- 积分:1
-
date
根据用户输入的年月日计算出第几天的控制台应用(To calculate the day of the console application based on user input date)
- 2015-04-06 12:37:24下载
- 积分:1
-
旋转编码器测速和读取脉冲
针对stm32f103芯片的arm板上用于编码器转速和读取脉冲,另文件内附有硬件接线说明(The arm board of STM32F103 chip is used for encoder speed and reading pulse. Hardware wiring instructions are attached to the file.)
- 2020-06-25 13:00:02下载
- 积分:1