Results 1 to 40 of 4215

Thread: CommonControls (Replacement of the MS common controls)

Threaded View

  1. #11

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,742

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by Karl77 View Post
    Good you asked.
    In a first attempt, I couldn't find any difference either.
    And then I found out why.

    See the attached project.
    It is made with intrinsic controls only.
    Try the different options and see them working as expected.

    And then place a TextBoxW1 somewhere.
    Don't add any code to it.
    See how the formerly working selection in the intrinsic textbox doesn't work anymore.

    Interesting effect.
    Textbox problem.zip.docx
    Yes, interesting. But it is not my TextBoxW which is causing this.
    You can put any blank UserControl with 'CanGetFocus' to True on the Form.
    The issue also only happens when you click on the VB.TextBox from an VB.UserControl. When you click from the VB.CommandButton to the VB.TextBox you have your expected behavior.

    EDIT: Again it is better behavior to select all in GotFocus by tab key and in MouseUp when clicking. In MouseUp also only all text will be selected if SelLength is 0. Thus the user is still free to select partially text without overriding. (See my example above)
    Last edited by Krool; Sep 20th, 2017 at 04:19 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