how to set focus on the form while entering values from another application.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yasirkhan
    New Member
    • Aug 2008
    • 3

    how to set focus on the form while entering values from another application.

    Hi,

    i am new in .net, and i am confused how to set cursor position in textbox.
    I have made an application of keyboard and other application of User Info. when i run my applications then the form named User info opens. in this form i have a text box, when this textbox is clicked then keyboard opens.

    But when i type a word from my keyboard application into the text box, then the cursor is disappeared.

    i want some help about this problem. i want that when any key is pressed or clicked from my key board application then the Cursor should appear and move as the keys are being clicked.

    waiting for ur replies.

    thanks
    yasir
  • yasirmturk
    New Member
    • Aug 2008
    • 15

    #2
    Hey buddy try this

    pass the reference of textbox to new keyboard form and update the textbox from there ..guess you can also use
    [HTML] txtInput.Focus( ); [/HTML]
    too...

    Comment

    • yasirkhan
      New Member
      • Aug 2008
      • 3

      #3
      how to set focus on the form while entering values from another application.

      hello,

      i have made a keyboard in .net and i want that when i enter the value from keyboard in any textbox of another form, keyboard form should not get focused, the form in which i am entering values should be focused. i have used mouse hover event but it's not the solution that i want. how can i set focus using instead of mouse hover event?

      any replies........ .

      Comment

      • yasirmturk
        New Member
        • Aug 2008
        • 15

        #4
        i guess i replied on your previous post OR somewhere else??

        Comment

        • yasirkhan
          New Member
          • Aug 2008
          • 3

          #5
          hi yasirmturk,

          yes you have replied, but that didn't work.

          if u have any other sloutions then please tell me, i will be thankful to you.

          thanks,
          yasirkhan

          Comment

          • Curtis Rutland
            Recognized Expert Specialist
            • Apr 2008
            • 3264

            #6
            Please do not double post your questions. It clutters the forum and is absolutely pointless. If you feel that your question has been neglected, please reply to your old question. That will "bump" it back to the top of the forum. If you can't find it, look through the "My Subscriptions" link at the top of the page. If you need to add information to the question, just add it in a reply. So you see, there is no reason to make two posts.

            Please read the Posting Guidelines.

            MODERATOR

            Comment

            • yasirmturk
              New Member
              • Aug 2008
              • 15

              #7
              Can you post part of your code here?

              Originally posted by yasirkhan
              hi yasirmturk,

              yes you have replied, but that didn't work.

              if u have any other sloutions then please tell me, i will be thankful to you.

              thanks,
              yasirkhan

              Comment

              Working...