C# winform三种方法判断文本框textBox内容是否为空

时间:2020-01-06 15:17:04   收藏:0   阅读:154
C# winform三种方法判断文本框textBox内容是否为空

使用系统API函数,需要使用命名空间:System.Runtime.InteropServices;

1.if (textBoxPath.Text ==  String.Empty )

2.if (textBoxPath.Text == "" )

3.if (String.IsNullOrEmpty(textBoxPath.Text))

原文:https://www.cnblogs.com/kelly1314/p/12155928.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!