What is the syntax to change a button’s display text?

 <button name>.Caption = "<new text>"
'example
btnPause.Caption = "Resume"

 

Advertisements

What is the syntax to check the value of a textbox?

If <textbox name>.Value = "<value textbox should be>" Then
   <code to be run, provided correct textbox value was entered>
End If
'example
If txtName.Value = "" Then
     Msgbox ("No name was entered!")
End If