[英]How to get if a RichTextBox has text and run code
我试图获取RichTextBox是否具有任何文本来运行特定代码。
我试过:如果RichTextBox1 =文字然后
但是它没有用。
请帮忙
'--------------------------IF Theres Nothing in it-----------------------------
If RichTextBox1.Text = "" Then
MsgBox("there's no text in RichBox")
End If
'--------------------------IF There in it--------------------------------------
If RichTextBox1.Text <>"" Then
MsgBox("there's a text in RichBox")
End If
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.