CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Location
    Rajasthan ,India
    Posts
    25

    URGENT:How to set focus in user control



    I want to pass the focus of a user control to the called object (from where the focus has come to the user control). How do I do it.




  2. #2
    Join Date
    Apr 1999
    Posts
    1

    Re: URGENT:How to set focus in user control

    If the control that you are sending the focus to has a enable property set it. (txtMyText.enable = true)
    sometimes you need to preface this code with txtMyText.focus = true.
    sometimes the .value property of other controls are set a value.
    Hope this helps

    Later,
    Glen

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

Featured