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]

winspool

.

       /* mode selections for the device mode function */

.

Turns out that there are some clever and powerful tools in Visual Studio 2005 and 2008 for working with the Management Classes (although couldn’t find it in the “Standard Edition” installed on this machine, definitely exists in my laptop’s Visual Studio). You can use Server Explorer to navigate a treeview to your management class (in this example, the Printers node), right-click on it and select “Generate Managed Class”. This will automagically create a strongly-typed C#.Net class representing the object model of the WMI Printers Class, with all its properties and methods.

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.)

Enums

.

   // Add a search item to the list of completed strings. Selecting this item launches a search engine.

.

   // Use the TAB key to select an item from the drop-down list.

.

    /// If the user selects folders that are not part of the file system,

.

    /// If the user selects an ancestor of the root folder that is not part of the file system, the OK button is grayed

.

    /// When the selected item is a shortcut, return the PIDL of the shortcut itself rather than its target.

.

    /// Only return computers. If the user selects anything other than a computer, the OK button is grayed.

.

    /// Only allow the selection of printers. If the user selects anything other than a printer, the OK button is grayed

.

    ''' If the user selects an ancestor of the root folder that is not part of the file system, the OK button is grayed

.

    ''' When the selected item is a shortcut, return the PIDL of the shortcut itself rather than its target.

.

    ''' Only return computers. If the user selects anything other than a computer, the OK button is grayed.

.

    ''' Only allow the selection of printers. If the user selects anything other than a printer, the OK button is grayed

.

    internal static PropertyKey UI_PKEY_SelectedItem = new PropertyKey(new Guid(Convert.ToString(104, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_UI4);

9: DLGC
.

    /// <summary> Windows will send an EM_SETSEL message to the control to select its contents. </summary>

10: DM
.

/// Selects duplex or double-sided printing for printers capable of duplex printing.

11: DMDUP
.

/// Selects duplex or double-sided printing for printers capable of duplex printing.

.

        Select Case d.DriveType

.

        End Select

.

    SHGFI_SELECTED = 0x000010000,     // show icon in selected state

14: FOS
.

    FOS_ALLOWMULTISELECT = 0x00000200,

.

    ALLOWMULTISELECT = &H200

.

     /// Selects the previous locale identifier in the circular list of loaded locale identifiers maintained by the system

.

     /// Selects the next locale identifier in the circular list of loaded locale identifiers maintained by the system

.

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

.

    [Description("There is no driver selected for the device information set or element.")]

.

    public const int SPAPI_E_NO_DRIVER_SELECTED = unchecked((int)0x800F0203);

.

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

.

    [Description("There is no device information element currently selected for this device information set.")]

.

    public const int SPAPI_E_NO_DEVICE_SELECTED = unchecked((int)0x800F0211);

.

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

.

    [Description("The machine selected for remote communication is not available at this time.")]

.

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

.

    [Description("The driver selected for this device does not support Windows XP.")]

.

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

.

    [Description("The driver selected for this device does not support Windows.")]

.

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

.

    <Description("There is no driver selected for the device information set or element.")> _

.

    Public Const SPAPI_E_NO_DRIVER_SELECTED As Integer = CInt(&H800f0203UI)

.

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

.

    <Description("There is no device information element currently selected for this device information set.")> _

.

    Public Const SPAPI_E_NO_DEVICE_SELECTED As Integer = CInt(&H800f0211UI)

.

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

.

    <Description("The machine selected for remote communication is not available at this time.")> _

.

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

.

    <Description("The driver selected for this device does not support Windows XP.")> _

.

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

.

    <Description("The driver selected for this device does not support Windows.")> _

17: LB_
.

    /* Multi-Select Only */

.

    ///   Selects an item in a multiple-selection list box and, if necessary, scrolls the item into view

.

    ///   wParam  Specifies how to set the selection. If this parameter is TRUE, the item is selected and highlighted; if it is FALSE, the highlight is removed and the item is no longer selected.

.

    ///   lParam Specifies the zero-based index of the item to set. If this parameter is –1, the selection is added to or removed from all items, depending on the value of wParam, and no scrolling occurs.

.

    ///   Remarks-Use this message only with multiple-selection list boxes.

.

    ///  Fills a buffer with an array of integers that specify the item numbers of selected items in a multiple-selection list box

.

    ///  wParam- The maximum number of selected items whose item numbers are to be placed in the buffer.

.

    ///  Return-The return value is the number of items placed in the buffer. If the list box is a single-selection list box, the return value is LB_ERR.

.

    ///   Gets the total number of selected items in a multiple-selection list box

.

    ///   Return Value-The return value is the count of selected items in the list box. If the list box is a single-selection list box, the return value is LB_ERR.

.

    /* Single Select Only */

.

    ///   Gets the index of the currently selected item, if any, in a single-selection list box

.

    ///   Return Value-In a single-selection list box, the return value is the zero-based index of the currently selected item. If there is no selection, the return value is LB_ERR.

.

    ///   Return Value If the search is successful, the return value is the index of the selected item. If the search is unsuccessful,LB_ERR

.

    ///   Use this message only with single-selection list boxes. You cannot use it to set or remove a selection in a multiple-selection list box

.

    LB_SELECTSTRING = 0x018C,

.

    ///  Selects a string and scrolls it into view, if necessary. When the new string is selected, the list box removes the highlight from the previously selected string.

.

    ///  wParam Specifies the zero-based index of the string that is selected. If this parameter is -1, the list box is set to have no selection.

.

    ///  Gets the selection state of an item

.

    ///  Return Value-If an item is selected, the return value is greater than zero; otherwise, it is zero. If an error occurs, the return value is LB_ERR.

.

    '* Multi-Select Only */

.

    '   Selects an item in a multiple-selection list box and, if necessary, scrolls the item into view

.

    '   wParam  Specifies how to set the selection. If this parameter is TRUE, the item is selected and highlighted; if it is FALSE, the highlight is removed and the item is no longer selected.

.

    '   lParam Specifies the zero-based index of the item to set. If this parameter is –1, the selection is added to or removed from all items, depending on the value of wParam, and no scrolling occurs.

.

    '   Remarks-Use this message only with multiple-selection list boxes.    

.

    '  Fills a buffer with an array of integers that specify the item numbers of selected items in a multiple-selection list box

.

    '  wParam- The maximum number of selected items whose item numbers are to be placed in the buffer.

.

    '  Return-The return value is the number of items placed in the buffer. If the list box is a single-selection list box, the return value is LB_ERR.    

.

    '   Gets the total number of selected items in a multiple-selection list box

.

    '   Return Value-The return value is the count of selected items in the list box. If the list box is a single-selection list box, the return value is LB_ERR.    

.

    '* Single Select Only */

.

    '   Gets the index of the currently selected item, if any, in a single-selection list box

.

    '   Return Value-In a single-selection list box, the return value is the zero-based index of the currently selected item. If there is no selection, the return value is LB_ERR.    

.

    '   Return Value If the search is successful, the return value is the index of the selected item. If the search is unsuccessful,LB_ERR

.

    '   Use this message only with single-selection list boxes. You cannot use it to set or remove a selection in a multiple-selection list box    

.

    LB_SELECTSTRING = &H18C

.

    '  Selects a string and scrolls it into view, if necessary. When the new string is selected, the list box removes the highlight from the previously selected string.

.

    '  wParam Specifies the zero-based index of the string that is selected. If this parameter is -1, the list box is set to have no selection.

.

    '  Gets the selection state of an item

.

    '  Return Value-If an item is selected, the return value is greater than zero; otherwise, it is zero. If an error occurs, the return value is LB_ERR.    

.

            GETSELECTEDCOUNT         = (FIRST + 50),

.

            GETSELECTIONMARK         = (FIRST + 66),

.

            SETSELECTIONMARK         = (FIRST + 67),

.

            SETSELECTEDCOLUMN        = (FIRST + 140),

.

            GETSELECTEDCOLUMN        = (FIRST + 174),

.

    OLECMDID_SELECTALL             = 17,

.

    OLECMDID_CLEARSELECTION            = 18,

.

    OLECMDID_CLEARSELECTION = 18

.

    OLECMDID_SELECTALL = 17

.

    OFN_ALLOWMULTISELECT = 0x200

.

    OFN_ALLOWMULTISELECT = &H200

.

    OFN_ALLOWMULTISELECT As Long = &H200

.

        /// <summary>767. Internet Connection Sharing cannot be enabled. The LAN connection selected as the private network has more than one IP address configured. Please reconfigure the LAN connection with a single IP address before enabling Internet Connection Sharing.  </summary>

.

        /// <summary>783. Internet Connection Sharing cannot be enabled. The LAN connection selected as the private network is either not present, or is disconnected from the network. Please ensure that the LAN adapter is connected before enabling Internet Connection Sharing.  </summary>

22: SBSP
.

    SBSP_NOAUTOSELECT = 0x04000000,

23: SHGFI
.

    SHGFI_SELECTED      = 0x000010000,    

.

    SHGFI_SELECTED = &H10000

24: SHGSI
.

    SHGSI_SELECTED = 0x000010000,

.

    SHGSI_SELECTED = &H10000

.

      '''<summary>Selects the default item; the user double-clicked the window menu.</summary>

.

        Select = 0x29,

.

        LaunchMediaSelect = 0xB5,

.

    VK_SELECT = &H29        ' // [Select] = 041

.

    VK_LAUNCH_MEDIA_SELECT = &HB5 ' // [SelectMedia] = 181

27: VK
.

        ///SELECT key

.

        SELECT = 0x29,

.

        ///Windows 2000/XP: Select Media key

.

        LAUNCH_MEDIA_SELECT = 0xB5,

.

    SELECT_KEY = 41

.

    LAUNCH_MEDIA_SELECT = 181

.

    /// 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.

.

    /// The WM_MENUSELECT message is sent to a menu's owner window when the user selects a menu item.

.

    MENUSELECT = 0x011F,

.

    /// The WM_MENUCOMMAND message is sent when the user makes a selection from a menu.

.

    IME_SELECT = 0x0285,

.

    /// 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.

.

    /// 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.

.

    /// 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.

.

    /// The user has selected the task list. A shell application that provides a task list should return TRUE to prevent Windows from starting its task list.

.

    '''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.

.

    '''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.

.

    '''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.

.

    '''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 = &H285

.

    '''The WM_MENUCOMMAND message is sent when the user makes a selection from a menu.

.

    '''The WM_MENUSELECT message is sent to a menu's owner window when the user selects a menu item.

.

    WM_MENUSELECT = &H11F

.

    ''' Message sent when the user selects a command item from a menu,

.

    ''' The message is sent when the user makes a selection from a menu.

.

    ''' The message is sent to a menu's owner window when the user selects a menu item.

.

    WmMenuSelect = &H11F

.

    ''' selection to the clipboard in <c>CF_TEXT</c> format.

.

    ''' current selection if any in the edit control and copy the deleted text to the clipboard in <c>CF_TEXT</c> format.

.

    ''' current selection if any from the edit control.

cards

cfgmgr32

.

flags, Flags that select the mode of restarting.

mapi32

.
Summary
MAPIDetails - Displays a dialog box containing the details of a selected address list entry.
.

  /// The MAPIDetails function displays a dialog box containing the details of a selected address list entry.

comdlg32

.

     CF_SELECTSCRIPT = 0x00400000,

.

            Console.WriteLine("Selected file with full path: {0}", ofn.file)

.

            Console.WriteLine("Selected file name: {0}", ofn.fileTitle)

.

#define OFN_ALLOWMULTISELECT 0x200

.

    Private m_bAllowSelection As Boolean = False

.

        _pdex.Flags = PRINTFLAG.PD_NOSELECTION Or PRINTFLAG.PD_NOPAGENUMS

.

    Public Const PD_SELECTION As Int32 = 1

.

    Public Const PD_NOSELECTION As Int32 = 4

.

    Private m_bAllowSelection As Boolean = False

.

        _pdex.Flags = PRINTFLAG.PD_NOSELECTION Or PRINTFLAG.PD_NOPAGENUMS

.

    Public Const PD_SELECTION As Int32 = 1

.

    Public Const PD_NOSELECTION As Int32 = 4

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)))

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


 
Access PInvoke.net directly from VS: