Access to another application?

alexk

Active member
Joined
Jul 23, 2002
Messages
34
Location
Israel
How can I Get or Put text to TextBox control at another application?? For example: Click on button in my application will Put string "Hello" into opened windows Notepade application.
Thanks
 
To write from TextBox to file:

Code:
FileOpen(1, "C:\VS.NET\stock.txt", OpenMode.Input)
        Input(1, txtStock.Text)
FileClose()

To write from file to TextBox

Code:
FileOpen(1, "C:\VS.NET\stock.txt", OpenMode.Input)
        Input(1, stock)
        txtStock.Text = stock
FileClose()

Depending on whether you intend to add to the file or rewrite the
file, change OpenMode.
If there are several TextBoxes, then you will have to use an array.

ailzaj
 
To access anothers application control you would need to play some time with Win32 API. Get window handles, and all that :)
 
Back
Top