Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Messages

Is possible to send a message from a VB App ( in one workstation ) to
another VB App ( in other workstation ) ? In reality I using a Client/Server
App ( in NT domain ), and, in some moment one client app must evaluate a
event ( repair database, for exemple ), and other users must close the app.
My question is if is possible to show a msgbox in these other apps from a
message in my app.

One ideia is to save in database a table and force my app read this
table in a time interval ( 5 min ) and, if table.field = 1 then show msgbox,
but my boss dont like this ideia. Is possible via API ?

Rogerio Weinert
Brazil
[662 byte] By [Rogrio Weinert] at [2007-11-10 0:20:33]
# 1 Re: Messages
"Rogrio Weinert" <rogerio.lopes@intra.procergs.com.br> wrote:
> Is possible to send a message from a VB App ( in one workstation ) to
>another VB App ( in other workstation ) ? In reality I using a Client/Server
>App ( in NT domain ), and, in some moment one client app must evaluate a
>event ( repair database, for exemple ), and other users must close the
app.
>My question is if is possible to show a msgbox in these other apps from
a
>message in my app.
>
> One ideia is to save in database a table and force my app read this
>table in a time interval ( 5 min ) and, if table.field = 1 then show msgbox,
>but my boss dont like this ideia. Is possible via API ?
>
>
>Rogerio Weinert
>Brazil
>
>

If the workstations are running on NT work station you can use Net Send.
This does exactly what you are
looking for. This is how you do it from VB.

Syntax:
Shell "Net Send ComputerName Message"

Example:
Shell "Net Send PC5 Hello"

Use Shell to launch the program Net Send
PC5 = the computer name of which you want to send the message to. you can
find this in control panel, network
Daniel at 2007-11-11 20:03:21 >
# 2 Re: Messages
"Rogrio Weinert" <rogerio.lopes@intra.procergs.com.br> wrote:
> Is possible to send a message from a VB App ( in one workstation ) to
>another VB App ( in other workstation ) ? In reality I using a Client/Server
>App ( in NT domain ), and, in some moment one client app must evaluate a
>event ( repair database, for exemple ), and other users must close the
app.
>My question is if is possible to show a msgbox in these other apps from
a
>message in my app.
>
> One ideia is to save in database a table and force my app read this
>table in a time interval ( 5 min ) and, if table.field = 1 then show msgbox,
>but my boss dont like this ideia. Is possible via API ?
>
>
>Rogerio Weinert
>Brazil
>
>

If the workstations are running on NT work station you can use Net Send.
This does exactly what you are
looking for. This is how you do it from VB.

Syntax:
Shell "Net Send ComputerName Message"

Example:
Shell "Net Send PC5 Hello"

Use Shell to launch the program Net Send
PC5 = the computer name of which you want to send the message to. you can
find this in control panel, network
Daniel at 2007-11-11 20:04:33 >
# 3 Re: Messages
DCOM would be one way to do it.

"Daniel" <djc@hnc.com> wrote:
>
>"Rogrio Weinert" <rogerio.lopes@intra.procergs.com.br> wrote:
>> Is possible to send a message from a VB App ( in one workstation )
to
>>another VB App ( in other workstation ) ? In reality I using a Client/Server
>>App ( in NT domain ), and, in some moment one client app must evaluate
a
>>event ( repair database, for exemple ), and other users must close the
>app.
>>My question is if is possible to show a msgbox in these other apps from
>a
>>message in my app.
>>
>> One ideia is to save in database a table and force my app read this
>>table in a time interval ( 5 min ) and, if table.field = 1 then show msgbox,
>>but my boss dont like this ideia. Is possible via API ?
>>
>>
>>Rogerio Weinert
>>Brazil
>>
>>
>
>If the workstations are running on NT work station you can use Net Send.
> This does exactly what you are
>looking for. This is how you do it from VB.
>
>Syntax:
>Shell "Net Send ComputerName Message"
>
>Example:
>Shell "Net Send PC5 Hello"
>
>Use Shell to launch the program Net Send
>PC5 = the computer name of which you want to send the message to. you can
>find this in control panel, network
>
>
>
Mike at 2007-11-11 20:05:31 >
# 4 Re: Messages
DCOM would be one way to do it.

"Daniel" <djc@hnc.com> wrote:
>
>"Rogrio Weinert" <rogerio.lopes@intra.procergs.com.br> wrote:
>> Is possible to send a message from a VB App ( in one workstation )
to
>>another VB App ( in other workstation ) ? In reality I using a Client/Server
>>App ( in NT domain ), and, in some moment one client app must evaluate
a
>>event ( repair database, for exemple ), and other users must close the
>app.
>>My question is if is possible to show a msgbox in these other apps from
>a
>>message in my app.
>>
>> One ideia is to save in database a table and force my app read this
>>table in a time interval ( 5 min ) and, if table.field = 1 then show msgbox,
>>but my boss dont like this ideia. Is possible via API ?
>>
>>
>>Rogerio Weinert
>>Brazil
>>
>>
>
>If the workstations are running on NT work station you can use Net Send.
> This does exactly what you are
>looking for. This is how you do it from VB.
>
>Syntax:
>Shell "Net Send ComputerName Message"
>
>Example:
>Shell "Net Send PC5 Hello"
>
>Use Shell to launch the program Net Send
>PC5 = the computer name of which you want to send the message to. you can
>find this in control panel, network
>
>
>
Mike at 2007-11-11 20:06:31 >
# 5 Re: Messages
Two alternatives ... One is to use the NetMessageBufferSend API (the target
can be a NT system where a MsgBox will appear, or a Win9x system running
WinPopup). The second is to write you own using the Winsock control. I have
samples of both at :

http://www.mvps.org/vbnet/code/system/netmessagebuffersend.htm
http://www.mvps.org/vbnet/code/network/chat.htm

--

Randy Birch, MVP Visual Basic

http://www.mvps.org/vbnet/
http://www.mvps.org/ccrp/
news://news.mvps.org/

Please correspond only using the newsgroups so all can benefit.

"Rogrio Weinert" <rogerio.lopes@intra.procergs.com.br> wrote in message
news:38d7d827@news.dev-archive.com...
| Is possible to send a message from a VB App ( in one workstation ) to
| another VB App ( in other workstation ) ? In reality I using a
Client/Server
| App ( in NT domain ), and, in some moment one client app must evaluate a
| event ( repair database, for exemple ), and other users must close the
app.
| My question is if is possible to show a msgbox in these other apps from a
| message in my app.
|
| One ideia is to save in database a table and force my app read this
| table in a time interval ( 5 min ) and, if table.field = 1 then show
msgbox,
| but my boss dont like this ideia. Is possible via API ?
|
|
| Rogerio Weinert
| Brazil
|
|
Randy Birch at 2007-11-11 20:07:30 >
# 6 Re: Messages
Two alternatives ... One is to use the NetMessageBufferSend API (the target
can be a NT system where a MsgBox will appear, or a Win9x system running
WinPopup). The second is to write you own using the Winsock control. I have
samples of both at :

http://www.mvps.org/vbnet/code/system/netmessagebuffersend.htm
http://www.mvps.org/vbnet/code/network/chat.htm

--

Randy Birch, MVP Visual Basic

http://www.mvps.org/vbnet/
http://www.mvps.org/ccrp/
news://news.mvps.org/

Please correspond only using the newsgroups so all can benefit.

"Rogrio Weinert" <rogerio.lopes@intra.procergs.com.br> wrote in message
news:38d7d827@news.dev-archive.com...
| Is possible to send a message from a VB App ( in one workstation ) to
| another VB App ( in other workstation ) ? In reality I using a
Client/Server
| App ( in NT domain ), and, in some moment one client app must evaluate a
| event ( repair database, for exemple ), and other users must close the
app.
| My question is if is possible to show a msgbox in these other apps from a
| message in my app.
|
| One ideia is to save in database a table and force my app read this
| table in a time interval ( 5 min ) and, if table.field = 1 then show
msgbox,
| but my boss dont like this ideia. Is possible via API ?
|
|
| Rogerio Weinert
| Brazil
|
|
Randy Birch at 2007-11-11 20:08:33 >