J
John Heitmuller.
I have a need to pass data between instances of a VB.NET application
running on the same box. What is the best approach to creating this
application as a VB.NET application?
As a test I'd like to create a single application with two multi-line
TextBoxes and a (Send) button. One TextBox is labeled (Message) and
the other is labeled (Conversation). Multiple instance of the
application can be run on the same box at the same time. When the
user types text in the (Message) TextBox and presses the (Send) button
the message text should be added to the (Conversation) TextBox of each
instance of the application ruining on that PC.
I have figured out how to do this by making calls to user32.dll and
sending Windows messages at the OS level. I am concerned that using
this approach will create OS version dependencies and upgrade
problems.
It looks to me that the way to accomplish this via the .Net Framework
is through Remoting. As I understand .Net Remoting you cannot
accomplish this with a single application. You need to create a
Listener app and a Client app. So for my test application I'd have to
create a Lister that runs as a service and a Client app that can be
run many times with each instance connecting back to the Listener.
This all seems unnecessarily complicated. So, I feel like I'm missing
something.
Any suggestions?
Thanks,
John
running on the same box. What is the best approach to creating this
application as a VB.NET application?
As a test I'd like to create a single application with two multi-line
TextBoxes and a (Send) button. One TextBox is labeled (Message) and
the other is labeled (Conversation). Multiple instance of the
application can be run on the same box at the same time. When the
user types text in the (Message) TextBox and presses the (Send) button
the message text should be added to the (Conversation) TextBox of each
instance of the application ruining on that PC.
I have figured out how to do this by making calls to user32.dll and
sending Windows messages at the OS level. I am concerned that using
this approach will create OS version dependencies and upgrade
problems.
It looks to me that the way to accomplish this via the .Net Framework
is through Remoting. As I understand .Net Remoting you cannot
accomplish this with a single application. You need to create a
Listener app and a Client app. So for my test application I'd have to
create a Lister that runs as a service and a Client app that can be
run many times with each instance connecting back to the Listener.
This all seems unnecessarily complicated. So, I feel like I'm missing
something.
Any suggestions?
Thanks,
John