PDA

Click to See Complete Forum and Search --> : Button Clicking


Gimpster
Jan 13th, 2000, 06:05 AM
I have a form with a text field and a button. I don't want the text field to be visible all the time, so what I want to do is when the user clicks the button have the text field become visible and have the button continue to look like it is depressed as long as the text field is visible and then when the user clicks the button again, the text field disappears and the button goes back to normal. Any idea how to do that?

------------------
Ryan

jpark
Jan 13th, 2000, 06:32 AM
Use a Check Box, and set Style to 1-Graphical


Private Sub Check1_Click()

If Check1.Value Then
Text1.Visible = False
Text2.Visible = False
Else
Text1.Visible = True
Text2.Visible = True
End If

End Sub


Joon

Gimpster
Jan 13th, 2000, 07:06 AM
Thanks a lot!

------------------
Ryan