English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I am making an application in visual basic and I want one of the buttons to disappear when the user clicks on it I have tried
>hide(button1)
but this brings up the too many arguments error message any solutions ?
-thanks tommy

2006-12-12 04:21:13 · 4 answers · asked by lamebrain 2 in Computers & Internet Programming & Design

4 answers

Try setting the "Visible" property to False.

2006-12-12 04:34:27 · answer #1 · answered by Gary K 4 · 0 0

Private Sub button1_Click()
button1.Visible = False
End Sub

2006-12-12 04:26:04 · answer #2 · answered by grant the monkey 2 · 1 0

The first answer is close but it should be

my_button.visible = false

in the context of the button event, so

Sub my_button_click
my_button.visible = false
End Sub

2006-12-12 04:29:42 · answer #3 · answered by johninmelb 4 · 1 0

http://www.techtutorials.net/

http://www.good-tutorials.com/
http://www.digitaljuice.com/
http://www.tutorialkit.com/
http://www.codestyles.com/
http://www.sitecube.com/website/promo_bw.asp?pid=sitetarget

2006-12-12 06:16:36 · answer #4 · answered by george r. n. 5 · 0 0

fedest.com, questions and answers