Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Going from show to hide and vise versa


Exvayate
 Share

Recommended Posts

Is there a way or command in vb6 that will allow me to make a button to allow a picture to appear and then click it again for it to dissapear?

Here's what I've gotten to make the button show the picture:
```
Private Sub Command1_Click()
    If Picture1.Visible = False Then
    Picture1.Visible = True
    End If
End Sub

```What is the code to make it so if I click it again it will hide the picture?
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...