problem showing focus on a button

G

Guest

Hi,
From reading something months ago, I've been under the impression that
saying button1.Focus() is enough to focus on the button and highlight it (the
dotted box). If this is true, I don't know what's wrong with my version, but
it doesn't work. In certain circumstances, when a button is definitely
focused on, you wouldn't be able to tell so from looking at the screen (the
dotted box isn't there so it looks like nothing's focused on). I've been
coming up with interesting ways around this, but the current situation is
proving challenging, and I can't imagine there isn't some simple way to force
the dotted line to appear. So, is there any manual way to say to highlight
this button?
Thanks so much!!!!!
Mel
 
C

Chris

melanieab said:
Hi,
From reading something months ago, I've been under the impression that
saying button1.Focus() is enough to focus on the button and highlight it (the
dotted box). If this is true, I don't know what's wrong with my version, but
it doesn't work. In certain circumstances, when a button is definitely
focused on, you wouldn't be able to tell so from looking at the screen (the
dotted box isn't there so it looks like nothing's focused on). I've been
coming up with interesting ways around this, but the current situation is
proving challenging, and I can't imagine there isn't some simple way to force
the dotted line to appear. So, is there any manual way to say to highlight
this button?
Thanks so much!!!!!
Mel

In my program I have the button change color when it receives focus. To
accomplish this I made my own button class and overrode the OnFocus and
LostFocus events but that was cause I wanted it everywhere in my
program. If you just need it for one button then handle the onfocus event.

Chris
 

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