Results 1 to 1 of 1

Thread: Need help with usercontrol

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2009
    Posts
    190

    Need help with usercontrol

    Hello,
    With some experience in VB6 I have significant problems in coding usercontrol for VB.NET
    In attached minimal example is simple project for VB2008 where I try to use my simple usercontrol with only one textbox.
    Purpose of program is navigating through controls with keyboard and mouse.
    But here are problems with mouse. Selecting, aligning etc... what is visible in example.
    When I click to usercontrol I woud like to have text selected and left aligned like with keys but that don't happens.
    However, VBNET fires unexpectedly some events and I dont know how to fix this.

    So please, some experienced user to help me to get my example project to work as expected.
    Thanks, nime.

    EDIT: To be more precise biggest misunderstanding is in that when I click to usercontrol that on textbox which is inside UC, event _LostFocus occurs!
    Attached Files Attached Files
    Last edited by nime; Nov 28th, 2012 at 08:37 AM.

Tags for this Thread

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