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 "select" in [All]

winmm

.

Use "Auto" in the Declare statement to have the correct character set selected automatically.

shell32

.

    /// Selects a portion of a window's client area to display as that window's thumbnail in the taskbar.

.

    /// <param name="prcClip">A pointer to a RECT structure that specifies a selection within the window's

.

Dim iconindex As Integer ' Will store the index of the selected icon

.

MessageBox.Show("Result: " + retval.ToString() + vbCrLf + "Selected Icon Index: " + iconindex.ToString())

.

    Select Case dockStyle

.

    End Select

.

    Select Case abd.uEdge

.

    End Select

.

        Select Case state

.

        End Select

.

            Select Case position

.

            End Select

.

        public const int BFFM_SETSELECTIONA = WM_USER + 102;

.

        public const int BFFM_SETSELECTIONW = WM_USER + 103;

.

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

.

                // Use BFFM_SETSELECTIONW if passing a Unicode string, i.e. native CLR Strings.

.

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

.

        public string SelectFolder(string caption, string initialPath, IntPtr parentHandle)

.

"null"     - Specifies that the operation is the default for the selected file type.

.

      /// <summary>show icon in selected state</summary>

.

      Selected     = 0x000010000,  

.

The image size is normally 32x32 pixels. However, if the Use large icons option is selected from the Effects section of the Appearance tab in Display Properties, the image is 48x48 pixels.

.

    SELECTED = &H10000

.
Summary
[SHOpenFolderAndSelectItems] - Opens a Windows Explorer window with specified items in a particular folder selected.
.

public static extern int SHOpenFolderAndSelectItems(IntPtr pidlFolder, uint cidl, [In, MarshalAs(UnmanagedType.LPArray)] IntPtr[] apidl, uint dwFlags);

.

  Public Shared Function SHOpenFolderAndSelectItems(ByVal pidlFolder As IntPtr, ByVal cidl As UInteger, <MarshalAs(UnmanagedType.LPArray)> ByVal apidl() As IntPtr, ByVal dwFlags As UInteger) As Integer

.

Process.Start("explorer.exe", "\"/select,c:\\windows\\system32\\calc.exe\"");

.

    public static extern int SHOpenFolderAndSelectItems(IntPtr pidlFolder, uint cidl, [In, MarshalAs(UnmanagedType.LPArray)] IntPtr[] apidl, uint dwFlags);

.

    public static void OpenFolderAndSelectItem(string folderPath, string file)

.

            // Open the folder without the file selected if we can't find the file

.

        SHOpenFolderAndSelectItems(nativeFolder, (uint)fileArray.Length, fileArray, 0);

.

  If ExplorerSelectItems.SetFolder("c:\windows\system32\") Then

.

    ExplorerSelectItems.AddFile("calc.exe")

.

    ExplorerSelectItems.AddFile("cacls.exe")

.

    ExplorerSelectItems.AddFile("cabview.dll")

.

    ExplorerSelectItems.AddFile("cabinet.dll")

.

    ExplorerSelectItems.Commit()

.

  Public NotInheritable Class ExplorerSelectItems

.

    ''' Sets the parent directory containing the files that will be selected.

.

    ''' Adds a single file to be selected.

.

    ''' Opens and selects all files. In addition releases all resources.

.

    SafeNativeMethods.SHOpenFolderAndSelectItems(pidlFolder, pidl.Length, pidl, 0)

.

    Public Shared Function SHOpenFolderAndSelectItems(ByVal pidlFolder As IntPtr, ByVal cidl As UInteger, <MarshalAs(UnmanagedType.LPArray)> ByVal apidl() As IntPtr, ByVal dwFlags As UInteger) As Integer

.
Documentation
[SHOpenFolderAndSelectItems] on MSDN
.

        /// No default item selected

user32

.

Useful to create a temporary block in input for sensitive GUI operations. For instance when manually activating a screen saver from within a GUI function, a short blocking delay will prevent the user mouse movements directly after selection from accidently escaping the screen saver.

.

                uint nselected = Helpers.DragQueryFile(m_hDrop, 0xffffffff, null, 0);

.

                if (nselected == 1)

.

/// <param name="x">Specifies the initial horizontal position of the window. For an overlapped or pop-up window, the x parameter is the initial x-coordinate of the window's upper-left corner, in screen coordinates. For a child window, x is the x-coordinate of the upper-left corner of the window relative to the upper-left corner of the parent window's client area. If x is set to CW_USEDEFAULT, the system selects the default position for the window's upper-left corner and ignores the y parameter. CW_USEDEFAULT is valid only for overlapped windows; if it is specified for a pop-up or child window, the x and y parameters are set to zero.</param>

.

/// <param name="nWidth">Specifies the width, in device units, of the window. For overlapped windows, nWidth is the window's width, in screen coordinates, or CW_USEDEFAULT. If nWidth is CW_USEDEFAULT, the system selects a default width and height for the window; the default width extends from the initial x-coordinates to the right edge of the screen; the default height extends from the initial y-coordinate to the top of the icon area. CW_USEDEFAULT is valid only for overlapped windows; if CW_USEDEFAULT is specified for a pop-up or child window, the nWidth and nHeight parameter are set to zero.</param>

.

''' <param name="x">Specifies the initial horizontal position of the window. For an overlapped or pop-up window, the x parameter is the initial x-coordinate of the window's upper-left corner, in screen coordinates. For a child window, x is the x-coordinate of the upper-left corner of the window relative to the upper-left corner of the parent window's client area. If x is set to CW_USEDEFAULT, the system selects the default position for the window's upper-left corner and ignores the y parameter. CW_USEDEFAULT is valid only for overlapped windows; if it is specified for a pop-up or child window, the x and y parameters are set to zero.</param>

.

''' <param name="nWidth">Specifies the width, in device units, of the window. For overlapped windows, nWidth is the window's width, in screen coordinates, or CW_USEDEFAULT. If nWidth is CW_USEDEFAULT, the system selects a default width and height for the window; the default width extends from the initial x-coordinates to the right edge of the screen; the default height extends from the initial y-coordinate to the top of the icon area. CW_USEDEFAULT is valid only for overlapped windows; if CW_USEDEFAULT is specified for a pop-up or child window, the nWidth and nHeight parameter are set to zero.</param>

.

    internal const UInt32 MF_MOUSESELECT      =0x00008000;

.

/// Gets the data on the clipboard in the format specified by the selected item of the specified listbox.

.

     uint SelectedFormat = GetSelectedClipboardFormat(ListBox);

.

     if (SelectedFormat != 0)

.

     //Get pointer to clipboard data in the selected format

.

     IntPtr ClipboardDataPointer = GetClipboardData(SelectedFormat);

.

                VK_SELECT = 0x29,

.

                VK_LAUNCH_MEDIA_SELECT = 0xB5,

.

    VK_SELECT    = 0x29,

.

    VK_LAUNCH_MEDIA_SELECT= 0xB5,

.

            Me.SelectionLength = 1

.

    If Selection.poStatus <> Selection.EnumSelection.NoSelection Then

.

        Dim loSelected As RECT

.

        loSelected.Left = Selection.poArea.Left

.

        loSelected.Top = Selection.poArea.Top

.

        loSelected.Right = Selection.poArea.Right

.

        loSelected.Bottom = Selection.poArea.Bottom

.

        InvertRect(hdc.ToInt32, loSelected)

.

With the enum beepType you get intellisense when you type "beep." and you can then select the kind of beep you want. For dylan.NET, use the fields containing the integer values inside the WinSnd class of dnu.dll at http://dylandotnetapps.codeplex.com/

.

        Select Case MsgWaitForMultipleObjects(1, arrHandles, 1, waitInterval, QS_ALLEVENTS)

.

        End Select

.

        Select Case MsgWaitForMultipleObjects(1, arrHandles, 1, waitInterval, QS_ALLEVENTS)

.

        End Select

.

            // New power scheme selected.

.

const uint EVENT_OBJECT_SELECTION = 0x8006; // hwnd ID idChild is selected item (if only one), or idChild is OBJID_WINDOW if complex

.

const uint EVENT_OBJECT_SELECTIONADD = 0x8007; // hwnd ID idChild is item added

.

const uint EVENT_OBJECT_SELECTIONREMOVE = 0x8008; // hwnd ID idChild is item removed

.

const uint EVENT_OBJECT_SELECTIONWITHIN = 0x8009; // hwnd ID idChild is parent of changed selected items

.

const uint EVENT_OBJECT_TEXTSELECTIONCHANGED = 0x8014; // hwnd ID idChild is item w? test selection change

.

Now you can use the font info however you want. Here's how to return a GDI+ Font corresponding to the MessageBox font selected by the user. Note that the height is always negative and always returns "world" units.

.

        Select Case m.Msg

.

        End Select

.

            oldBitmap = Win32.SelectObject(memDc, hBitmap);

.

                Win32.SelectObject(memDc, oldBitmap);

.

        public extern static IntPtr SelectObject(IntPtr hDC, IntPtr hObject);

.

Public Const VK_SELECT = &H29

.

    public const uint VK_SELECT = 0x29;

.

    public const uint VK_LAUNCH_MEDIA_SELECT = 0xB5;

.

      foreach(var culture in (new string[]{"he-IL", "en-US", "en-IE"}).Select(code => CultureInfo.GetCultureInfo(code)))

.

      foreach(var culture in (new string[]{"he-IL", "en-US", "en-IE"}).Select(code => CultureInfo.GetCultureInfo(code)))

Constants

33: CB_
.

    CB_SELECTSTRING = 0x014D,

.

public const int CB_SELECTSTRING      = 0x014D;

.

        CB_SELECTSTRING = &H14D

.

    Public Const CB_SELECTSTRING As Integer = &H14D

34: EMR_
.

        EMR_SELECTOBJECT           = 37,

.

        EMR_SELECTPALETTE          = 48,

.

        EMR_SELECTCLIPPATH         = 67,

.

        EMR_EXTSELECTCLIPRGN       = 75,

35: MAPI
.

  /// to select between two different dialog boxes for logon.

.

    public static PropertyKey SENSOR_DATA_TYPE_GPS_SELECTION_MODE = new PropertyKey(0X055C74D8, 0XCA6F, 0X47D6, 0X95, 0XC6, 0X1E, 0XD3, 0X63, 0X7A, 0X0F, 0XF4, 31); //[VT_I4]

.

    public const int NIN_SELECT         = (WM_USER + 0);

.

    public const int NIN_KEYSELECT      = (NIN_SELECT | NINF_KEY);

.

    public const int SHGFI_SELECTED      = 0x000010000;     // show icon in selected state

.

    public const int NIN_SELECT         = (WM_USER + 0);

.

    public const int NIN_KEYSELECT      = (NIN_SELECT | NINF_KEY);

.

    public const int SHGFI_SELECTED      = 0x000010000;     // show icon in selected state

39: TCM_
.

public const UInt32 TCM_DESELECTALL = (TCM_FIRST + 50);

.

    //     (void)SNDMSG((hwnd), TCM_DESELECTALL, fExcludeFocus, 0)

.

    Private Const TCM_DESELECTALL As UInt32 = (TCM_FIRST + 50)

.

    '     (void)SNDMSG((hwnd), TCM_DESELECTALL, fExcludeFocus, 0)

40: WA_
.

'''the SetActiveWindow function or by use of the keyboard interface to select the window).

.

   '''the SetActiveWindow function or by use of the keyboard interface to select the window).

.

        /// Invalid message for single-selection list box.

.

        /// There is no driver selected for the device information set or element.

.

        public const int SPAPI_E_NO_DRIVER_SELECTED = (int)(0x800F0203 - 0x100000000);

.

        /// There is no device information element currently selected for this device information set.

.

        public const int SPAPI_E_NO_DEVICE_SELECTED = (int)(0x800F0211 - 0x100000000);

.

        /// The machine selected for remote communication is not available at this time.

.

        /// The driver selected for this device does not support Windows XP.

.

        /// The driver selected for this device does not support Windows.

42: WM
.
WM_CLEAR 0x303 An application sends a WM_CLEAR message to an edit control or combo box to delete (clear) the current selection, if any, from the edit control.
.
WM_COMMAND 0x111 The WM_COMMAND message is sent when the user selects a command item from a menu, when a control sends a notification message to its parent window, or when an accelerator keystroke is translated.
.
WM_COPY 0x301 An application sends the WM_COPY message to an edit control or combo box to copy the current selection to the clipboard in CF_TEXT format.
.
WM_CUT 0x300 An application sends a WM_CUT message to an edit control or combo box to delete (cut) the current selection, if any, in the edit control and copy the deleted text to the clipboard in CF_TEXT format.
.
WM_IME_SELECT 0x285 Sent to an application when the operating system is about to change the current IME. A window receives this message through its WindowProc function.
.
WM_MENUCOMMAND 0x126 The WM_MENUCOMMAND message is sent when the user makes a selection from a menu.
.
WM_MENUSELECT 0x11F The WM_MENUSELECT message is sent to a menu's owner window when the user selects a menu item.
.

private const UInt32 WM_IME_SELECT         = 0x0285;

.

private const UInt32 WM_MENUSELECT         = 0x011F;

.

   WM_IME_SELECT = &H285

.

   WM_MENUSELECT = &H11F

.

WM_MENUSELECT         equ 11Fh

.

WM_IME_SELECT         equ 285h

advapi32

.

    ManagementObjectCollection UserSearch = new ManagementObjectSearcher("Select * From Win32_LogicalFileSecuritySetting Where Path='" + FromPath + "'").Get();

.

            new ManagementObjectSearcher("Select * From Win32_Account Where Name = '" + Account + "'").Get();

.

     Select Case Value.GetType.ToString

.

     End Select

.

   Select Case RegType

.

   End Select

.

        Dim dirInfo As DirectoryInfo = New DirectoryInfo(mainFolderBrowserDialog.SelectedPath)

.

        path = mainFolderBrowserDialog.SelectedPath

dhcpsapi

.

        string strSQL = "select * from IP_to_Name where IP_address = '" + scope + "'";

iphlpapi

.

                     select thisAddress).FirstOrDefault();

.

                          select thisInterface).SingleOrDefault();

.

                          select thisInterface).SingleOrDefault();

.

        Return String.Join(":", (From z As Byte In mac.GetAddressBytes Select z.ToString("X2")).ToArray())

.

        Return String.Join(":", (From z As Byte In mac.GetAddressBytes Select z.ToString("x2")).ToArray())

netapi32

.
Summary
The DsGetDcName function returns the name of a domain controller in a specified domain. This function accepts additional domain controller selection criteria to indicate preference for a domain controller with particular characteristics.
.

Pointer to a PDOMAIN_CONTROLLER_INFO value that receives a pointer to a DOMAIN_CONTROLLER_INFO structure that contains data about the domain controller selected. This structure is allocated by DsGetDcName. The caller must free the structure using the NetApiBufferFree function when it is no longer required.

.

            Select Case Result

.

            End Select

.

If you want to find the user logged in to the workstation, consider instead a WMI query ("select UserName from Win32_ComputerSystem"), which has certain advantages (runs faster, less ambigious results, doesn't require Interop if using .Net 2.0 System.Management namespace, etc.)

cfgmgr32

.

flags, Flags that select the mode of restarting.

coredll

.

        Select Case val

.

        End Select

.

        Select Case val

.

        End Select

.

    public const UInt64 TGF_GID_SELECT           = 0x0000000000004000;

.

    public const UInt64 TGF_GID_DOUBLESELECT     = 0x0000000000008000;

.

    public const UInt64 TGF_GID_SELECT               = 0x0000000000004000;

.

    public const UInt64 TGF_GID_DOUBLESELECT         = 0x0000000000008000;

.
WARNING
This is not the REAL SelectObject. This signature uses the wrong dll. Search for the one with [DllImport("gdi32.dll" ....
.

[DllImport ("coredll.dll", EntryPoint="SelectObject", SetLastError=true)]

.

private static extern IntPtr SelectObjectCE(IntPtr hdc, IntPtr hgdiobj);

.

Declare Function SelectObject Lib "coredll.dll" (TODO) As TODO

.
Documentation
[SelectObject] on MSDN
.

    /// 13 COLOR_HIGHLIGHT Color of an item selected in a control.

.

    /// 14 COLOR_HIGHLIGHTTEXT Color of the text of an item selected in a control.

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


 
Access PInvoke.net directly from VS: