checkbox question

  • Thread starter Thread starter John
  • Start date Start date
J

John

I have a checkbox that I placed onto a button in the upper
righthand corner. When I click the button to bring up the
form it controls, the checkbox goes to the back. On the
popup form a button there is what causes the checkbox to
get checked.
What I would like is to have the checkbox on top of the
button at all times. Is that possible? If so, how? The
best I could do was to have the popup form button that
causes the checkbox to check also set focus to the
checkbox during it's event.
Thanks for any assistance.
*** John
 
Hi John

When a control gets the focus, it will always come to the front, even if
it's been "Sent to back" in design view. Clicking on your command button
will therefore give it the focus and therefore bring it to the front.

What you could do is add:
CheckboxName.SetFocus
as the first statement in the command button's Click procedure. Also, set
the button's TabStop property to No, so it han't inadvertently get the
focus.
 
Graham, your reply did not come thru as I get Message
Unavailable. But then, I am getting the same for some
others within the newsgroup. Not sure where the problem
is regarding the message.
Just letting you know so you don't think I was ignoring
you.
*** John
 
Back
Top