-
Hi,
I'm having a problem with the Focus in my OCX.
This is my doubt:
My OCX is a Command Button. Inside the UserControl there
is a Label. When I click over the Label the Click() event
doesn't trigger. The Click() event only works if I click over the Label for the second time.
I think the first time I click the Label, my OCX isn't
accepting the Focus.
Is there a way to "force" the UserControl accept the Focus in the first click (using Setfocus or something like this inside the Label1_Click() event)?
Thanks for any help...
Michel Jr.
-
This is no way the best way to do it but you could put a timer on the form and every time the timer reches the interval that button control gets the focus.
Ask Fox/Megatron they're the best