Solved

Assistance with netsend via visual studio6 SP5

Posted on 2006-11-21
1
226 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 500 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying 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

Suggested Solutions

Title # Comments Views Activity
Help with adding DLL file in Windows project 20 47
RLDC Reporting in Visual studio 11 42
get combo value in class 5 24
Filtering a datagrid view 8 34
I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

763 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