Thanks in advance
.net
i want to send message to other pc via lan. after sending message i want a acknowledgment message from the receive side can any one help me
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sam HobbsPosted Mar 25, 2010, 12:08 PM
Amit ChoudharyPosted Mar 25, 2010, 3:54 AM
you can use MSMQ and feature provided in Windows OS's. some times its not installed. you have install it from your control panel add/remove windows component and select the check box for MSMQ(Microsoft Messaging Queue). and install it you need your OS setup CD sometimes.
In .net there is library to provide you support to access the MSMQ:
Follow below articles to learn about using MSMQ libraries of .net and how to send reliable messages:
1. http://msdn.microsoft.com/en-us/library/ms978430.aspx
2. http://www.c-sharpcorner.com/UploadFile/[email protected]/MSMQ11292005035019AM/MSMQ.aspx
Please mark as answer if it helps you.
Lalit MPosted Mar 25, 2010, 3:18 AM
if (lstnames.SelectedItems.Count > 0) {
foreach (string strSeleted in lstnames.SelectedItems) {
//somehow a list item is in fact a string
string strname = " " + strSeleted;
long lngPos = 1;
do {
long lretval = Shell("net send " + strname + " \"" + Mid(strMessage, lngPos, iChunk) + "\"", vbHide);
lngPos += iChunk;
//pause to stop out of sequence message chunks
Sleep(100);
}
while (!(lngPos > Len(strMessage)));
strStatus += strname.ToString;
}
}
show here article in vb.net