Command Button Visible Property

Maxine1010

Registered User.
Local time
Today, 23:36
Joined
Jun 28, 2002
Messages
25
Hello again!

help needed....I have 2 command buttons on my starting form, one which refreshes and one which opens another form. I want to make the command button which opens the form visible only AFTER the refresh command button has been pressed.

I have limited knowledge of Visual Basic so I would appreciate any and all help whether basic or more advanced.

Thanks
 
Hi Maxine

I'm still learning vb but I think this will work.

On Form_open put
your cmdbutton name.visible = false

then

On click of the refresh cmdbutton put
yourcmdbutton.visible = true

This should work for you
Hay
 
Thanks hayley,

I'm just inputting the details you have given me, but I have a problem as the Refresh button already has an event procedure in the On_Click, and so I'm not sure as to where to add the line you suggested. Any advice?
 
Hi maxine it should be ok to add it onto the end of your existing procedure. I don't think this will cause any problems with what you have already why not test it out.

Hay
 
Thanks hayley, it works a treat.

I added Me! to the beginning of each of the lines and just stuck it on the end of the event procedure like you suggested.

I can now look forward to a relaxing and happy day!

Thanks Again.
 

Users who are viewing this thread

Back
Top Bottom