Results 1 to 2 of 2

Thread: OCX Development - Focus Doubt

  1. #1

    Thread Starter
    Addicted Member Michel Jr's Avatar
    Join Date
    Jan 2000
    Location
    Brazil
    Posts
    175

    Question

    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.

  2. #2
    Frenzied Member
    Join Date
    Jun 2000
    Location
    England, Buckingham
    Posts
    1,341
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width