Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / December 2004

Tip: Looking for answers? Try searching our database.

simple intercommunication (application intercommunication)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stevie_mac - 13 Dec 2004 11:48 GMT
Hi, I'm after a simple way of sending a message to a previous instance of my small helper application that processes
some command line instructions.  The app can be configured to remain open (for debugging purposes) & this is where my
problem arises.

I can find the other (running) instance & close the new instance easily, however, the command line instructions need to
be sent to the 1st instance application.

I would be most grateful is someone could prove a simple method (even if it means populating a textbox & triggering a
buttons 'click' event (on the 1st instance)).

Basically, then new app sends a string (the command line) to the existing app (1st running copy) then closes.  The
running app handles the new command line instructions.

Regards - Steve.

(PS, if this is the wrong NG, let me which one is the right NG & I'll repost there!)
Legend UK - 13 Dec 2004 12:58 GMT
Steve,

The behaviour you seek can be achieved via remoting. Google for "single
instance applications" and you will find several examples. I would provide
you the code I am using but as you will see from my post a few posts up I am
currently experiencing a bug with it. Feel free to keep an eye on that
thread however, as if/when it gets a response the code attached to that
message should do all you need.

Regards,

Anne.

> Hi, I'm after a simple way of sending a message to a previous instance of
> my small helper application that processes
[quoted text clipped - 18 lines]
> (PS, if this is the wrong NG, let me which one is the right NG & I'll
> repost there!)

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.