Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "send" in [All]

kernel32

.

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

.

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

.

private void shutdownToolStripMenuItem_Click(object sender, EventArgs e)

.

     DiskSmartSendDriveCommand = (EFileDevice.Disk << 16) | (0x0021 << 2) | EMethod.Buffered | (FileAccess.ReadWrite << 14),

.

   Private Const DFP_SEND_DRIVE_COMMAND As Integer = &H7C084

.

   Private Declare Function DeviceIoControl Lib "kernel32" (ByVal hDevice As Integer, ByVal dwIoControlCode As Integer, ByRef lpInBuffer As SENDCMDINPARAMS, ByVal nInBufferSize As Integer, ByRef lpOutBuffer As IntPtr, ByVal nOutBufferSize As Integer, ByRef lpBytesReturned As Integer, ByVal lpOverlapped As IntPtr) As Integer

.

   Structure SENDCMDINPARAMS

.

       Dim bDriveNumber As Byte    ' Physical drive number to send command to (0,1,2,3).

.

   Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

.

       Dim SCIP As SENDCMDINPARAMS

.

    CLRRTS = 4, //Clears the RTS (request-to-send) signal.

.

    SETDTR = 5, //Sends the DTR (data-terminal-ready) signal.

.

    SETRTS = 3, //Sends the RTS (request-to-send) signal.

.

    // watching for CTS (Clear To Send)

.

    void watchdog_Tick(object sender, EventArgs e)

.

    private void cmdTest_Click(object sender, EventArgs e)

.

    protected void Page_Load(pbject sender, EventArgs e)

.

    public byte   ncb_sto;        /* send timeout/sys timeout       */

.

Sends a string to the debugger for display.

.

If you need a more accurate break time, you could lower the baud rate, send

.

There is a message (WM_SETTINGCHANGE) you can send in order to notify the active windows that there has been a configuration change using the SendMessageTimeout function.

.

Sending NULL to lpData and 0 to cbData will delete the file indicated by hUpdate.

.

    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click

dhcpsapi

.

            PingReply result = ping1.Send(rowReader["IP_address"].ToString(), 1000);

shell32

16: CSIDL
.

            CSIDL_SENDTO            = 0x0009,    // <user name>\SendTo

17: CSIDL
.

        /// The file system directory that contains Send To menu items. A typical path is C:\Documents and Settings\username\SendTo.

.

        CSIDL_SENDTO = 0x0009,

.

    private void btnBrowse_Click(object sender, EventArgs e)

.

private void fileSystemWatcher_Renamed(object sender, RenamedEventArgs e)

.

private void fileSystemWatcher_Deleted(object sender, FileSystemEventArgs e)

.

private void fileSystemWatcher_Created(object sender, FileSystemEventArgs e)

.

private void mnuDynamic_Click(object sender, System.EventArgs e)

.

    MenuItem theMenuItem = (MenuItem) sender;

.

///     Sends an appbar message to the system.

.

///     C++ ( dwMessage [in] Type: DWORD )<br />Appbar message value to send. This parameter can be one of the following

.

///         send notification messages to the appbar.

.

    Private Overloads Sub OnLoad(ByVal sender As Object, ByVal e As System.EventArgs)

.

    Private Overloads Sub OnClosing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs)

.

        // Constants for sending and receiving messages in BrowseCallBackProc

.

        public static extern IntPtr SendMessage(HandleRef hWnd, uint Msg, int wParam, IntPtr lParam);

.

        public static extern IntPtr SendMessage(HandleRef hWnd, int msg, int wParam, string lParam);

.

                //Win32.SendMessage(new HandleRef(null, hWnd), BFFM_SETSELECTIONA, 1, lpData);

.

                SendMessage(new HandleRef(null, hWnd), BFFM_SETSELECTIONW, 1, _initialPath);

.

                SendMessage(new HandleRef(null, hWnd), BFFM_SETSTATUSTEXTW, 0, pathPtr);

.

I tried to use this to send files to the recycle bin. It failed (Marshal.GetLastWin32Error was 6, invalid handle) and sometimes threw a NullReferenceException. To make it work I did the following;

.

        CSIDL_SENDTO          = 0x0009,    // <user name>\SendTo

.

    public static readonly Guid SendTo = new Guid( "8983036C-27C0-404B-8F08-102D10DCFD74" );

.

    SENDTO = &H9

.

        CSIDL_SENDTO        = 0x0009,    // <user name>\SendTo

.

    public static Guid SendTo = new Guid("8983036C-27C0-404B-8F08-102D10DCFD74");

user32

.

An application sends the WM_MDIICONARRANGE message to the multiple-document interface (MDI) client window to prompt the client window to arrange its minimized MDI child windows.

.
Summary
.

    private void button1_Click(object sender, System.EventArgs e) {

.

    Private Sub TextBox1_GotFocus(sender As Object, e As EventArgs) Handles TextBox1.GotFocus

.

    ///<Summary>Sends a WM_NCCALCSIZE message to the window, even if the window's size is not being changed. If this flag is not specified, WM_NCCALCSIZE is sent only when the window's size is being changed.</Summary>

.

    SWP_NOSENDCHANGING = 0x0400,

.

    '''<Summary>Sends a WM_NCCALCSIZE message to the window, even if the window's size is not being changed. If this flag is not specified, WM_NCCALCSIZE is sent only when the window's size is being changed.</Summary>

.

    SWP_NOSENDCHANGING = &H0400

.

    SWP_NOSENDCHANGING As Integer = &H0400

.

/// <para>The DestroyWindow function destroys the specified window. The function sends WM_DESTROY and WM_NCDESTROY messages to the window to deactivate it and remove the keyboard focus from it. The function also destroys the window's menu, flushes the thread message queue, destroys timers, removes clipboard ownership, and breaks the clipboard viewer chain (if the window is at the top of the viewer chain).</para>

.

''' <para>The DestroyWindow function destroys the specified window. The function sends WM_DESTROY and WM_NCDESTROY messages to the window to deactivate it and remove the keyboard focus from it. The function also destroys the window's menu, flushes the thread message queue, destroys timers, removes clipboard ownership, and breaks the clipboard viewer chain (if the window is at the top of the viewer chain).</para>

.

btnCloseWindow_Click(object sender, EventArgs e)

.

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

.

     private void label1_Click(object sender, EventArgs e)

.

    Private Sub label1_Click(sender As Object, e As EventArgs)

.

     private void button1_Click(object sender, EventArgs e)

.

     private void button2_Click(object sender, EventArgs e)

.

            // Try closing application by sending WM_CLOSE to all child windows in all threads.

.

       ' Try closing application by sending WM_CLOSE to all child windows in all threads.

.

    private void timer1_Tick(object sender, EventArgs e)

.

     Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick

.

Private Sub Button1_Click(ByVal sender As System.Object, _

.

     private void button1_Click(object sender, EventArgs e)

.

     private void button2_Click(object sender, EventArgs e)

.

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

.

Sendmessage(hwndMain, WM_COMMAND, intMID,  0) 'Click the MenuItem!

.

        QS_SENDMESSAGE =    0x0040,

.

        QS_ALLINPUT = (QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY | QS_SENDMESSAGE)

.

Sendmessage(hwndMain, WM_COMMAND, intMID,  0) 'Click the MenuItem!

.

     private void Form1_Load(object sender,EventArgs e)

.

    private void Form1_Load(object sender, EventArgs e)

.

    Private Sub Form1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Click

.

private void button1_Click(object sender, System.EventArgs e)

.

Private Sub tb_GotFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles tb.GotFocus

.
Summary
.

static extern InSendMessageExFlags InSendMessageEx(IntPtr lpReserved);

.

InSendMessageExFlags

.
Documentation
[InSendMessageEx] on MSDN
.

    private void button1_Click(object sender, EventArgs e)

.

// Sends ENTER button press event in focused window

.

     private void timer1_Tick(System.Object sender, System.EventArgs e)

.

' Sends ENTER button press event in focused window

.

     Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick

.

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

.

Alternative Managed API: System.Windows.Forms.SendKeys

.

    private void Compare(object sender, string expected, string actual)

.

        Button ClickedButton = (Button)sender;

.

    private void buttonNumericAccept_Click(object sender, EventArgs e)

.

        // Send Appropriate Key Presses

.

        Compare(sender, expected, NumericTextbox.Text);        

.

    private void Surface_MouseEnter(object sender, EventArgs e)

.

    Private Sub Form_Closed(ByVal sender As System.Object, ByVal e As FormClosedEventArgs) Handles MyBase.FormClosed

.

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

.

    private void Surface_MouseEnter(object sender, EventArgs e)

.

    Private Sub Form_Closed(ByVal sender As System.Object, ByVal e As FormClosedEventArgs) Handles MyBase.FormClosed

.

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

.

private void button1_Click(object sender, EventArgs e)

.

FYI, Microsoft tells us for "Windows NT/2000/XP: This function has been superseded. Use SendInput instead."

.

     private void timer1_Tick(System.Object sender, System.EventArgs e)

.

     Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick

.

    Private Sub cmdClick_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles cmdClick.Click

.

    Private Sub picClicker_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles picClicker.Click

.

    Private Sub picClicker_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles picClicker.MouseDown

.

    Private Sub picClicker_MouseUp(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles picClicker.MouseUp

.

Thus I have resigned myself to unmanaged code for now. I will post the SendInput version shortly as mouse_event has been deprecated by Bill in favor of SendInput.

.

    Private Sub ResizeMe_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles ResizeMe.MouseMove

.

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

.

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick

.

private void Paint(object sender, PaintEventArgs e)

.

MSDN recommends using PostQuitMessage over PostMessage when you want to send WM_QUIT http://msdn.microsoft.com/en-us/library/ms632641%28v=vs.85%29.aspx

Cut off search results after 60. Please refine your search.


 
Access PInvoke.net directly from VS: