checkbox question

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
 
G

Graham Mandeno

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.
 
J

John

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top