Link to home
Start Free TrialLog in
Avatar of aboka
aboka

asked on

Make Program 'Talk' To Each Other

Hi! I would like to request a sample for the best way to make my VB program to 'talk' to each other. Like when the 'client' start it will 'inform' the 'main', etc.

I have found one example from the internet and I think its using DDE, but it needs to have textbox(control) on both the running program to run successfully. So I think there must be a better way.

FYI - I am running VB6

Thank you,
Avatar of GrahamSkan
GrahamSkan
Flag of United Kingdom of Great Britain and Northern Ireland image

DDE is the simplest solution. It's problem is poor documentation and its legacy status.
Surely having a text box control is not a problem?
Apologies to the Apostrophe Preservation Society for "It's" instead of "Its"
>>but it needs to have textbox(control) on both the running program to run successfully.


You can set visbile to false
Avatar of aboka
aboka

ASKER

To EDDYKT -
Yep, have done that, but like my question - I want to find other better ways.

Thank you,
ASKER CERTIFIED SOLUTION
Avatar of seanpage
seanpage

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of aboka

ASKER

To seanpage -

I have looked at the link you provided and test the code, its working ok with the 'notepad'. But how could I 'trap' the message send to my program?

Do I need to have a textbox and a timer to constantly check if theres any message receive? I was hoping to find something without all that(control). Please advice with sample coding, thank you.


P/s - The TCP/IP thing is not suitable as its not a network program.

cheers,