C#编程:三种方法判断文本框是否为空-9_彭世瑜_新浪博客

293 阅读1分钟

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

\

1、if(textbox1.text=="")

2、if(textbox1.text==string.empty)

3、if(string.isnullorempty(textbox1.text))