Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Assistance with netsend via visual studio6 SP5

Posted on 2006-11-21
1
Medium Priority
?
230 Views
Last Modified: 2010-04-23
I have a form that I have one combo box that is populated with several user names, a multiline text box for messages to be typed and a command button labled "send" to send the message.

I want to be able to utilize the net send feature via code for a simple way to communicate a quick message to a user on my network.

Can anyone give me some sample code to get started... ??
0
Comment
Question by:ittechie100
1 Comment
 
LVL 7

Accepted Solution

by:
Mohamed Zedan earned 2000 total points
ID: 17990696
try this:

Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

Const SW_SHOWNORMAL = 1
Private Sub Form_Load()
    dim Msg as string
    msg = "Hello All"
    ShellExecute Me.hwnd, vbNullString, "net.exe", "send * " & msg , "C:\", 0
End Sub
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question