Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

To write from TextBox to file:

 

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

 

To write from file to TextBox

 

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

Guest mutant
Posted
To access another's application control you would need to play some time with Win32 API. Get window handles, and all that :)
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...