C# winform三种方法判断文本框textBox内容是否为空
时间:2019-04-09 20:03:40
收藏:0
阅读:386
使用系统API函数,需要使用命名空间:System.Runtime.InteropServices;
1.if (textBoxPath.Text == String.Empty )
2.if (textBoxPath.Text == "" )
3.if (String.IsNullOrEmpty(textBoxPath.Text))
原文:https://www.cnblogs.com/hhhhan1025/p/10679162.html
评论(0)