Sending to back?

snagrat

Registered User.
Local time
Today, 03:43
Joined
Apr 2, 2002
Messages
61
When I try to hide one of my buttons after being click I get the message:

"You can't hide a control that has the focus"

I kind of expected this. All I want to know is whether there is a way of sending a comand button behind another?

I have one which when clicked I want to hide, but as above it wont let me. Therefore sending it behind the other command button would do the trick.

Is this possible??
 
well you could move the focus to the second button BEFORE hiding the first button
 
Good Idea, but how??

I havent got a clue!
 
Use the button1 on click event

Private Sub button1_Click()

Me!button2.SetFocus
Me!button1.Visible=False

End sub
 
Yeah I figured it out in the end but thanks for giving me the idea.

Cheers
 

Users who are viewing this thread

Back
Top Bottom