CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2008
    Posts
    45

    Question Inputting to another form

    Is there a easy way to input a string or integer into another exe's textbox for example, if i wanted to write into the textbox on the windows calculator '3'. Can someone please give an example code and if you dont mind could you explain what does what in the code.

    Thanks in advance
    Chris

  2. #2
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: Inputting to another form

    Get the handle of the main window and then get the handle of the Text Box. You can then use SendMessage API to send the specific text to the text box. These two thread will give you an idea of how to do it
    http://www.codeguru.com/forum/showthread.php?t=479877
    http://www.codeguru.com/forum/showth...ht=SendMessage

    Also there are number of threads in C# forum too, those will be helpful too.

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