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]

opengl32

.

        GL_SELECTION_BUFFER_POINTER = 0x0DF3,

.

        GL_SELECTION_BUFFER_SIZE = 0x0DF4,

.

        GL_SELECT = 0x1C02,

.

    public static extern void glSelectBuffer(int size, uint[] buffer);

.

                _OldFontH = Gdi.SelectObject(dc, fontH);

.

                IntPtr disposeFontH = Gdi.SelectObject(dc, _OldFontH);

Interfaces

.

    /// completed strings. When the user selects

.

    /// <summary>Use the TAB key to select an

.

        ctrl.[Select]()

.

        If SelectNextControl(ActiveControl, If(ModifierKeys = Keys.Shift, False, True), True, True, False) Then

.

''' Specifies Style of the band object, its Name(displayed in explorer menu) and HelpText(displayed in status bar when menu command selected).

.

        ctrl.[Select]()

.

        If SelectNextControl(ActiveControl, If(ModifierKeys = Keys.Shift, False, True), True, True, False) Then

.

''' Specifies Style of the band object, its Name(displayed in explorer menu) and HelpText(displayed in status bar when menu command selected).

.

    void OnSelectionChange ( [In, MarshalAs ( UnmanagedType.Interface )] IFileDialog pfd );

.

    void OnItemSelected ( [In, MarshalAs ( UnmanagedType.Interface )] IFileDialogCustomize pfdc, [In] int dwIDCtl,

.

    void GetSelectedControlItem ( [In] int dwIDCtl, [Out] out int pdwIDItem );

.

    void SetSelectedControlItem ( [In] int dwIDCtl, [In] int dwIDItem ); // Not valid for OpenDropDown

.

    void OnSelectionChange ( [In, MarshalAs ( UnmanagedType.Interface )] IFileDialog pfd );

.

    void GetCurrentSelection ( [MarshalAs ( UnmanagedType.Interface )] out IShellItem ppsi );

.

    void GetSelectedItems ( [MarshalAs ( UnmanagedType.Interface )] out IShellItemArray ppsai );

.

    void GetCurrentSelection ( [MarshalAs ( UnmanagedType.Interface )] out IShellItem ppsi );

.

                    InfoPathControl.XmlForm.MainDataSource.CreateNavigator().SelectSingleNode(xPath, InfoPathControl.XmlForm.NamespaceManager);

.

            openDialog.Title = "Select instance .xml file.";

.

                    throw new InvalidFileException("Selected file " + openDialog.FileName + " was not an XML file");

.

                openDialog.Title = "Select form tempalte .xsn.";

.

                        throw new HostedException("Selected file " + openDialog.FileName + " was not an XSN file");

.

        /// Sets/Unsets the formatting of the selected text to bold

.

        ///    Sets/Unsets the formatting of the selected text to Italics

.

        ///    Sets/Unsets the formatting of the selected text to be Underlined

.

        ///    Sets/Unsets the formatting of the selected text to be strikethrough

.

        ///    Sets the formatting of the selected text to be superscipt

.

        ///    Sets/Unsets the formatting of the selected text to subscript

.

        ///    Increases the font size of the selected text by 2

.

        ///    Decreases the font size of the selected text by 2

.

        ///    Clears font formatting of the selected text

.

        ///    Sets the font formatting of the selected text to InfoPath's setting for heading 1

.

        ///Sets the font formatting of the selected text to InfoPath's setting for heading 2

.

        ///    Sets the font formatting of the selected text to InfoPath's setting for heading 3

.

        ///    Sets the font formatting of the selected text to InfoPath's setting for heading 4

.

        ///    Sets the font formatting of the selected text to InfoPath's setting for heading 5

.

        ///    Sets the font formatting of the selected text to InfoPath's setting for heading 6

.

        ///    Sets the font formatting of the selected text to InfoPath's setting for normal

.

        /// Sets/Gets the font of the currenty selected text

.

        /// <returns>The name of the font of the selected text</returns>

.

        public string SelectedTextFont

.

                        ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetSelectedTextFont),typeof(string)),CultureInfo.CurrentCulture

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetSelectedTextFont, value));

.

        /// Sets/Gets the font size of the currently selected text

.

        /// <returns>The name of the font size of the selected text</returns>

.

        public string SelectedTextFontSize

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetSelectedTextFontSize), typeof(string)),CultureInfo.CurrentCulture

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetSelectedTextFontSize, value));

.

        /// Sets/Gets the font color of the selected text

.

                            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetSelectedTextFontColor), typeof(int)), CultureInfo.CurrentCulture

.

                ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetSelectedTextFontColor, vaIn));

.

        /// Sets/Gets the highlight color of the selected text

.

                        ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetSelectedTextHighlightColor), typeof(int)),CultureInfo.CurrentCulture

.

                ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetSelectedTextHighlightColor, vaIn));

.

        /// Aligns the selected paragraph to the left

.

        /// Aligns the selected paragraph to the center

.

        ///    Aligns the selected paragraph to the right

.

        ///    Justifies the selected paragraph

.

        ///    Increases indentation of the selected paragraph

.

        ///    Decreases indentation of the selected paragraph

.

        /// Gets the background color of the selected text

.

                        ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetSelectedTextBackgroundColor)),CultureInfo.CurrentCulture

.

                ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetSelectedTextBackgroundColor, vaIn));

.

        ///    Cuts the selected text and copies it to the clipboard

.

        ///    Copies the selected text to the clipboard

.

        ///    Pastes the copied or cut text into the selected control

.

        #region Select All

.

        ///    Selects all of the text in a control

.

        public void SelectAll()

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SelectAll));

.

        ///    Replaces the currently selected search string instance

.

        ///    <param name="ReplaceString">string to replace selected string</param>

.

        ///    Remove the bullets from the selected line(s)

.

        ///    Removes the numbered list from the selected line(s)

.

        ///    Inserts/Removes a numbered list for the current selection

.

        ///    Inserts/Removes a bulleted list for the current selection

.

        /// Deletes the selected table

.

        public void DeleteSelectedTable()

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.DeleteSelectedTable));

.

        #region Select a Table

.

        /// Selects all of the current table

.

        public void SelectTable()

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SelectTable));

.

        /// Deletes the selected columns

.

        public void DeleteSelectedColumns()

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.DeleteSelectedColumns));

.

        /// Deletes the selected rows

.

        public void DeleteSelectedRows()

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.DeleteSelectedRows));

.

        #region Select columns and rows

.

        /// Selects all of the current column

.

        public void SelectColumn()

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SelectColumns));

.

        /// Selects the column before the column with the current focus

.

        public void SelectPreviousColumn()

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SelectPreviousColumn));

.

        /// Selects the column after the column with the current focus

.

        public void SelectNextColumn()

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SelectNextColumn));

.

        /// Selects all of the current row

.

        public void SelectRow()

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SelectRows));

.

        /// Selects the row before the row with the current focus

.

        public void SelectPreviousRow()

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SelectPreviousRow));

.

        /// Selects the row after the row with the current focus

.

        public void SelectNextRow()

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SelectNextRow));

.

        /// Selects the entire current cell

.

        public void SelectCell()

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SelectCell));

.

        /// Sets the alignment of the selected cell to be at the top

.

        public void SetSelectedCellAlignmentTop()

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetSelectedCellAlignmentTop));

.

        /// Sets the alignment of the selected cell to be in the middle

.

        public void SetSelectedCellAlignmentMiddle()

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetSelectedCellAlignmentMiddle));

.

        /// Sets the alignment of the selected cell to be at the bottom

.

        public void SetSelectedCellAlignmentBottom()

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetSelectedCellAlignmentBottom));

.

        /// Gets the vertical alignment of the selected cell

.

        public string SelectedCellVerticalAlignment

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetSelectedCellVerticalAlignment),typeof(string)),CultureInfo.CurrentCulture

.

        /// Sets the padding of selected cells

.

        public void SetSelectedCellPadding(string padTop, string padRight, string padBottom, string padLeft)

.

                ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetSelectedCellPadding, vaIn));

.

        /// Gets the top padding of the selected cell

.

        public string SelectedCellTopPadding

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetSelectedCellTopPadding),typeof(string)),CultureInfo.CurrentCulture

.

        /// Gets the right padding of the selected cell

.

        public string SelectedCellRightPadding

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetSelectedCellRightPadding),typeof(string)),CultureInfo.CurrentCulture

.

        /// Gets the bottom padding of the selected cell

.

        public string SelectedCellBottomPadding

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetSelectedCellBottomPadding),typeof(string)),CultureInfo.CurrentCulture

.

        /// Gets the left padding of the selected cell

.

        public string SelectedCellLeftPadding

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetSelectedCellLeftPadding),typeof(string)),CultureInfo.CurrentCulture

.

        /// Sets/Gets the height of the selected row

.

        /// <returns>The height of the selected row with units</returns>

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetSelectedRowHeight),typeof(string)),CultureInfo.CurrentCulture

.

                ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetSelectedRowHeight, value));

.

        /// Sets/Gets the width of the selected column

.

        /// <returns>The width of the selected column with units</returns>

.

                    ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.GetSelectedColumnWidth),typeof(string)),CultureInfo.CurrentCulture

.

                ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SetSelectedColumnWidth, value));

.

        /// Checks if there is a row below the currently selected row

.

                return IsCommandOn(FormControlCommandIds.CommandIds.SelectNextRow);

.

        /// Checks if there is a row above the currently selected row

.

                return IsCommandOn(FormControlCommandIds.CommandIds.SelectPreviousRow);

.

        /// Selects the next row in the table

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SelectNextRow));

.

        /// Selects the previous row in the table

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SelectPreviousRow));

.

        /// Checks if there is a column right of the currently selected column

.

                return IsCommandOn(FormControlCommandIds.CommandIds.SelectNextColumn);

.

        /// Checks if there is a column left of the currently selected column

.

                return IsCommandOn(FormControlCommandIds.CommandIds.SelectPreviousColumn);

.

        /// Selects the next column in the table

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SelectNextColumn));

.

        /// Selects the previous column in the table

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SelectPreviousColumn));

.

        /// Finds and selects the next misspelled word

.

        /// Gets the selected misspelled word

.

        /// <returns>The currently selected misspelled word</returns>

.

        /// Ignores the selected misspelling

.

        /// Deletes the selected misspelled word

.

        /// Sets/Gets the height of the selected picture

.

        /// <returns>Height of the selected picture</returns>

.

        /// Sets/Gets the width of the selected picture

.

        /// <returns>Width of the selected picture</returns>

.

        /// Sets/Gets the alternative text of the selected picture

.

        /// Checks if a hyperlink is currently selected

.

        public bool IsHyperlinkSelected

.

                return IsCommandOn(FormControlCommandIds.CommandIds.SelectHyperlink);

.

        /// Selects all of the current hyperlink

.

        public void SelectHyperlink()

.

            ChkResult(ExecuteCommand(FormControlCommandIds.CommandIds.SelectHyperlink));

.

        /// Selects the first error on the current view

.

        ///    Selects the next error on the current view

.

        /// Shows the message associated with the selected error

.

        /// <summary>Do not allow more than a single item to be selected. This is used in the common dialog boxes.</summary>

.

        SingleSelection = 0x00000040,

.

        /// <summary>Always show the selection.</summary>

.

        ShowSelectionAlways = 0x00002000,

.

        CheckSelect = 0x00040000,

.

        /// <summary>Windows Vista and later: When an item is selected, the item and all its sub-items are highlighted.</summary>

.

        FullRowSelect = 0x00200000,

.

        TriCheckSelect = 0x04000000,

.

        /// <summary>Windows Vista and later: Items can be selected using checkboxes.</summary>

.

        AutoCheckSelect = 0x08000000,

.

        /// <summary>Object names and other selected information, such as the size or date last updated, are shown.</summary>

.
Summary
IUISimplePropertySet is a read-only interface that can be implemented by the Windows Ribbon framework and a Ribbon host application, depending on the situation. When implemented by the Ribbon framework, IUISimplePropertySet defines the method for retrieving property key values. In a host application, IUISimplePropertySet is implemented for each item in an item gallery IUICollection object and defines the method for retrieving properties of the selected item.
.

    object SelectDeviceDlg(

.

    string SelectDeviceDlgID(

wininet

.

    dwZone = cmbZone1.SelectedIndex

.

    dwParty = cmbParty1.SelectedIndex

.

    dwZone = cmbZone2.SelectedIndex

.

    dwParty = cmbParty2.SelectedIndex

.

    sTmp = cmbSetTemplate.SelectedItem

Structures

.
Summary
Contains parameters for the SHBrowseForFolder function and receives information about the folder selected by the user.
.

    ILD_SELECTED = 0x00000004,

.

        ///SELECT key

.

        SELECT = 0x29,

.

        ///Windows 2000/XP: Select Media key

.

        LAUNCH_MEDIA_SELECT = 0xB5,

.

        SELECT = 0,

.

        LAUNCH_MEDIA_SELECT = 109,

21: MAPI
.

    /// Client applications can select message types for their non-IPM messages.

.

    ''' Client applications can select message types for their non-IPM messages.

.

     SINGLESELECT   =(MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_SINGLE | MIXERCONTROL_CT_UNITS_BOOLEAN),

.

     MUX        =(SINGLESELECT + 1),

.

     MULTIPLESELECT =(MIXERCONTROL_CT_CLASS_LIST | MIXERCONTROL_CT_SC_LIST_MULTIPLE | MIXERCONTROL_CT_UNITS_BOOLEAN),

.

     MIXER      =(MULTIPLESELECT + 1),

.

    ''' and the second string is the filter pattern selected by the user.

.

    ''' When the user selects a file, the dialog box copies the current filter pattern

.

    ''' The index of the currently selected filter in the File Types control.

.

    ''' When the user selects a file, nFilterIndex returns the index of the currently displayed

.

    ''' selected file.

.

    ''' The file name and extension (without path information) of the selected file. This member can be NULL.

.

    ''' The initial directory. The algorithm for selecting the initial directory varies on different platforms.

.

    ''' If the user selects more than one file, nFileOffset is the offset to the first file name.

.

    public uint     otmfsSelection;

.

        Public otmfsSelection As UInt32

.

        public uint DeviceNotSelectedTimeout;

26: TVITEM
.

  public int iSelectedImage;

.

  public int iSelectedImage;

winmm

.

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

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

32: DLGC
.

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

33: DM
.

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

34: 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

37: 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.")> _

40: 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>

45: SBSP
.

    SBSP_NOAUTOSELECT = 0x04000000,

46: SHGFI
.

    SHGFI_SELECTED      = 0x000010000,    

.

    SHGFI_SELECTED = &H10000

47: 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

50: 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.

kernel32

.

    // http://pinvoke.net/default.aspx/kernel32/GetConsoleSelectionInfo.html

.

    static extern bool GetConsoleSelectionInfo(

.

        CONSOLE_SELECTION_INFO ConsoleSelectionInfo

.

    public struct CONSOLE_SELECTION_INFO

.

        COORD SelectionAnchor;

.

        SMALL_RECT Selection;

.

        const uint CONSOLE_MOUSE_SELECTION = 0x0004; //Selecting with the mouse

.

        const uint CONSOLE_NO_SELECTION = 0x0000; //No selection

.

        const uint CONSOLE_SELECTION_IN_PROGRESS = 0x0001; //Selection has begun

.

        const uint CONSOLE_SELECTION_NOT_EMPTY = 0x0002; //Selection rectangle is not empty

.

FileTimeToLocalFileTime converts a time from UTC time (also known as Greenwich Mean Time) to "local time" (inside the computer's selected time zone). The source and target times are stored in FILETIME structures. The function returns 1 if successful, or 0 if an error occurs.FileTimeToLocalFileTime Converts a UTC file time to a local file time. System.DateTime.ToFileTime FileTimeToLocalFileTime Converts a UTC file time to a local file time. System.DateTime.ToLocalTime

.

                Get-ChildItem $env:windir\sysnative -filter *.exe | Get-BinaryType -ErrorAction SilentlyContinue -passthrough | select Name,BinaryType

.

Here's a method that uses this method in conjunction with GetCurrentConsoleFont to return the size of the currently selected console font.

.

    static extern bool GetConsoleSelectionInfo(

.

        CONSOLE_SELECTION_INFO ConsoleSelectionInfo

.

Declare Function GetConsoleSelectionInfo Lib "kernel32.dll" (TODO) As TODO

.

    public struct CONSOLE_SELECTION_INFO

.

        COORD SelectionAnchor;

.

        SMALL_RECT Selection;

.

        const uint CONSOLE_MOUSE_SELECTION = 0x0004; //Selecting with the mouse

.

        const uint CONSOLE_NO_SELECTION = 0x0000; //No selection

.

        const uint CONSOLE_SELECTION_IN_PROGRESS = 0x0001; //Selection has begun

.

        const uint CONSOLE_SELECTION_NOT_EMPTY = 0x0002; //Selection rectangle is not empty

.
Documentation
[GetConsoleSelectionInfo] on MSDN
.

        currencyFormat.uiLeadingZero = Convert.ToUInt32(cboLeadingZero.SelectedIndex);

.

        currencyFormat.uiNegativeOrder = Convert.ToUInt32(cboNegativeOrder.SelectedIndex);

.

        currencyFormat.uiPositiveOrder = Convert.ToUInt32(cboPositiveOrder.SelectedIndex);

.

This can be very useful while creating the Installers e.g. Wix. User can create custom actions to determine the Windows OS languages and then select the install language.

.

     public uint ErrorSelector;

.

     public uint DataSelector;

.

    public ushort ErrorSelector;

.

    public ushort DataSelector;

.
Summary
.

    static extern bool GetThreadSelectorEntry (

.

        uint dwSelector,

.

        out LDT_ENTRY lpSelectorEntry

.

    if ( !GetThreadSelectorEntry( GetCurrentThread(), cntx.SegDs, out ldt ) )

.
Documentation
[GetThreadSelectorEntry] on MSDN

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


 
Access PInvoke.net directly from VS: