Previous in Forum: NX Siemens-Pseudo Automation Code Programmer   Next in Forum: 3D Model Line
Close
Close
Close
4 comments
Rate Comments: Nested
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468

How To Exchange Data Between VB.NET Programs?

11/28/2011 9:50 AM

Many of my applications are written in VB6, making extensive use of DDE for exchanging data.

VB.NET doesn't support DDE, and (AFAIK) VB6 will not be supported after WIN 7, so I'm going to have to have a re-think (and an extensive re-write).

Can anyone please point me to a simple example of two VB.NET programs exchanging data using e.g. Automation? I've rummaged about in the Help system without success (I only have Visual Studio.NET 2003 at present, but will be upgrading soon).

Thanks in anticipation.

__________________
"Love justice, you who rule the world" - Dante Alighieri
Register to Reply
Pathfinder Tags: "VB.NET Automation"
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#1

Hold the Front Page!!!

11/28/2011 11:04 AM

Thanks to anyone who had a go, but I've sorted it out for myself.

I created an "invisible" activeX component with properties to read and write data, and then used it in two VB.NET .exes so that they could sent data to each other, using one instance of the component. I got the clue from the "coffeewatch" example in VB6 help.

__________________
"Love justice, you who rule the world" - Dante Alighieri
Register to Reply
Associate

Join Date: May 2010
Location: Islamabad, Pakistan.
Posts: 40
Good Answers: 1
#2
In reply to #1

Re: Hold the Front Page!!!

11/28/2011 11:58 PM

That is very nice.

Happy coding !

__________________
Join Date: 24/10/2007
Register to Reply
Active Contributor

Join Date: Nov 2011
Posts: 15
#3

Re: How To Exchange Data Between VB.NET Programs?

11/29/2011 3:58 AM

It's nice of you,when I am in trouble,can I ask for help to you,I'm a newbie here

Register to Reply
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#4
In reply to #3

Re: How To Exchange Data Between VB.NET Programs?

11/29/2011 4:23 AM

Welcome. If I can help, I will (the same as most people here).

__________________
"Love justice, you who rule the world" - Dante Alighieri
Register to Reply
Register to Reply 4 comments
Copy to Clipboard

Users who posted comments:

JohnDG (2); victy23 (1); wahaj87 (1)

Previous in Forum: NX Siemens-Pseudo Automation Code Programmer   Next in Forum: 3D Model Line

Advertisement