private sub command1_click()
if len(text1.text)=0 then
command1.tooltiptext="发送内容不能为空,请重新输入”
text1.setfocus
else
command1.tooltiptext="输入内容正确,正在发送...”
end if
end sub
Private Sub TextBox1_Change()
If (Len(TextBox1.Text)=0) Then
CommandButton1.TooltipText = "发送内容不能为空,请重新输入"
Else
CommandButton1.TooltipText = "按Ctrl+Enter发送信息"
End If
End Sub