Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Toggle

Status
Not open for further replies.

Brian56

Programmer
May 29, 2003
66
CA
This must be very simple but I just cant get it.

How can I toggle the visiblity of a textbox from one button.?
 
Swear this isn't homework?

Assume you have a command button named Command1 and a text box named Text1, use this code for the click event of the button:
Code:
Private Sub Command1_Click()
  Text1.Visible = Not (Text1.Visible)
End Sub

HTH,
harebrain
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top