How do i change a property of a control in another app?
i have two apps written in vb. when the user has typed the correct user name and pass i want to send that info to the 2nd app which will email tat to a given address.
how do i do this. :confused:
i tried this with timers and registry it didnt work nicely.
Re: How do i change a property of a control in another app?
There are many ways how apps can communicate. Some more, some less efficient.
For example. You can use Winsock component. One app can open a socket and listen to it. The other one then sends a message.
Btw... you cannot change Control's Property from another app directly. You can however use some APIs but is quite complicated.
Re: How do i change a property of a control in another app?
ok how do i do it with API. ive been told i can do it that way. any links or samples?
Re: How do i change a property of a control in another app?
Quote:
Originally Posted by astroanu2004
i have two apps written in vb. when the user has typed the correct user name and pass i want to send that info to the 2nd app which will email tat to a given address.
how do i do this. :confused:
i tried this with timers and registry it didnt work nicely.
You could modify the second app to that it uses the Command$ function to accept input parameters (in this case the name and password). You could then Shell the second app from the first.
Re: How do i change a property of a control in another app?
Here's an example:
App2.exe contains
Code:
Private Sub Form_Load()
Text1.Text = Command$
End Sub
App1 does this
Code:
Shell "C:\temp\app2.exe hi there"
When you do that, App2 will show up with hi there in text1.text
Re: How do i change a property of a control in another app?
yeah this will work only when the app loads. what about after it loads? i want to do his when both the exes are loaded on to memory.
Re: How do i change a property of a control in another app?