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

    Sending text to another window...

    Can anyone post the code on how to send text from a text box on my program to Notepad when you press the command button.

    So the text box would have something like, "Test", written in it, and when you push the command button it will find the notepad window and write "Test" to it. Thx for any help you give me.


  2. #2
    Join Date
    Aug 2001
    Location
    India
    Posts
    173

    Re: Sending text to another window...

    Private Sub Command1_Click()
    ShellX = Shell("notepad", vbNormalFocus)
    SendKeys Text1.Text
    End Sub


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