Click or drag to resize

ShellComboBox Methods

The ShellComboBox type exposes the following members.

Methods
  NameDescription
Public methodAddDesktopContent
Adds the Desktop content if ShowDesktopContent is true
Protected methodAddIdListToCombo(ItemIdList)
Adds the folders of the given ItemIdList as non-persistent items to the combobox.
Protected methodAddIdListToCombo(ItemIdList, Boolean)
Adds the folders of the given ItemIdList as (non)persistent items to the combobox.
Public methodAddPersistentRootItemDesktop
This adds the persistent root item for the virtual folder "Desktop"
Protected methodAddShellFolder
This method adds a list of persistent objects from a folder to the CustomFolderBox.
Protected methodAdjustTextBoxSize
Adjusts the size of the edit field so that it is inside the combo box.
(Inherited from CustomEditComboBox.)
Public methodBeginInit
Signals the object that initialization is starting.
(Overrides CustomEditComboBoxBeginInit.)
Protected methodCustomFolderComboDrawItemHandler
This is the event handler registered to DrawItem(Control, DrawItemEventArgs, Boolean) it displays the items as files or folders
(Inherited from CustomFolderComboBox.)
Protected methodCustomFolderComboSelectedIndexChanged
The event handler for the SelectedIndexChanged event. it notifies the ShellControlConnector about the selection change if it has been registered.
Public methodEnableSystemStyles
Sets system specific behaviour, i.e. FullRowSelect in Vista and upwards.
(Inherited from CustomEditComboBox.)
Public methodEndInit
Signals the object that initialization is complete.
(Overrides CustomEditComboBoxEndInit.)
Public methodFolderChanged
Change the current folder to the one given in parameter throws ArgumentNullException if the argument was null
Public methodFullRefresh
Rescans the folders and refreshes the components' entire display
Protected methodGetPersistentItems
This method is extended by RefreshPersistent to support more Special Folders to be displayed.
Public methodGoUp
Go up one level in the tree, does nothing if the SelectedNode is null of if the SelectedNode has no Parent (is root)
Protected methodOnCreateControl (Inherited from CustomEditComboBox.)
Protected methodOnDropDown
Refreshes the non-persistent items in the control (ie. if changes on the desktop occurred)
(Overrides ComboBoxOnDropDown(EventArgs).)
Protected methodOnHandleCreated
This event is triggered after the handle of the control was created.
(Inherited from CustomEditComboBox.)
Protected methodOnOverlayResize
This method is called from the OverlayTextBox.Resize Event. It calls the AdjusTextBoxSize method.
(Inherited from CustomEditComboBox.)
Protected methodOnShowOptionChanged
This method needs to be called if a a ShowOption changed.
(Inherited from CustomFolderComboBox.)
Protected methodOnSizeChanged
This event is triggered after the size of the combobox changed. Fixes bug #4397.
(Inherited from CustomEditComboBox.)
Protected methodOverlayTextBoxClicked
If the OverlayTextBox is clicked, it's text is selected.
Protected methodOverlayTextBoxEntered
If the OverlayTextBox is clicked, it's text is selected.
Public methodRefresh(RefreshLevel)
This method indicates that the control should perform a refresh of its contents.
Public methodRefresh(RefreshLevel, ItemIdList)
This method indicates that the control should perform a refresh of its contents.
Protected methodRefreshPersistent
This method also refreshes the persistent items - it is used if properties that are normally set at designtime are modified at runtime, e.g. IncludeRemoveableDrives is switched on, since those Items are persistent items, they are not refreshed by default
Protected methodRemoveNonPersistentItems
Removes Items from the ShellComboItems list that are not persistent.
Public methodSelectedFileChange
This method does nothing because ShellCombo does not display files.
Protected methodSetFont
Sets the font without adjusting other properties.
(Inherited from CustomEditComboBox.)
Public methodSmartRefresh
The SmartRefresh only refreshes the non persistent items but its functionality equals a FullRefresh for the ShellCombo.
Protected methodUpdateOverlayTextBox
Updates the Text of the OverlayTextBox by either setting the items caption or the items path depending on the ShowFullPath property
(Inherited from CustomFolderComboBox.)
Top
Extension Methods
  NameDescription
Public Extension MethodHandleNeeded
A Control extension method that ensures that the handle for a control is created.
(Defined by ExtensionMethods.)
Public Extension MethodScaledPixels
An extension method for controls: It scales the passed pixels according to the current dpi the control is displayed with.
(Defined by ExtensionMethods.)
Public Extension MethodScaleFont
A Control extension method that scales font according to the passed factor.
(Defined by ExtensionMethods.)
Top
See Also