Home All Groups Group Topic Archive Search About

Launch .NET application through notification or windows messaging Option

Author
7 Jul 2009 7:18 PM
Andy
Is there any way to launch a .NET application by issuing a windows
message?

I have two VB.NET applications, A and B.


A writes records to a database, and then issues a message that its
finished.
The message somehow causes application B to launch which then
offloads
the records in the database to somewhere else.


What's the best windows technology to use to do this?


Delegates?  Windows messaging?  Triggers?  Callbacks?  Is there
anything else?

Author
7 Jul 2009 7:50 PM
Tom Shelton
On 2009-07-07, Andy <ane***@infotek-consulting.com> wrote:
Show quoteHide quote
> Is there any way to launch a .NET application by issuing a windows
> message?
>
> I have two VB.NET applications, A and B.
>
>
> A writes records to a database, and then issues a message that its
> finished.
> The message somehow causes application B to launch which then
> offloads
> the records in the database to somewhere else.
>
>
> What's the best windows technology to use to do this?
>
>
> Delegates?  Windows messaging?  Triggers?  Callbacks?  Is there
> anything else?

Can you not just launch the other application using Shell or
System.Diagnostics.Process?  What is the rational for wanting to use a window
message for this?  The only way I could see to do it that way would be to have
a applciation launcher in the background that was capable of watchign for a
window message - a simple broadcast of a custom window message (using
RegisterWindowMessage api)....

--
Tom Shelton