Results 1 to 40 of 4199

Thread: CommonControls (Replacement of the MS common controls)

Threaded View

  1. #11
    Fanatic Member
    Join Date
    Apr 2015
    Posts
    536

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by Eduardo- View Post
    That's not what happens to me.
    Eduardo, Krool is right.
    In here, it also happens with your example.
    Not always.

    Krool's suggestion to do the selection on MouseUp helps, kind of.

    As we must be able to set the focus by Tab key, we need the GotFocus event.
    Works good.
    But when we set the focus by mouse, the GotFocus kicks in, and does something which is not ok.
    No problem, MouseUp cures it.

    But it doesn't look clean, we can see the selection change from GotFocus to MouseUp.

    I remember there is a possibility to check HOW a control got the focus.
    http://www.devx.com/vb2themax/Tip/18274

    EDIT:
    Solved.
    We just need to invoke the selection routine in both GotFocus and MouseUp.
    See attached project.
    Textbox problem SOLVED.zip.docx

    Sorry Krool for the suspicion on your control.
    Last edited by Karl77; Sep 20th, 2017 at 04:56 AM.

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