Click or drag to resize

CustomEditComboBox Class

This class provides an editable TextBox which may be extended, e.g. by the ShellApi, that is laid over the display field of the ComboBox control.
Inheritance Hierarchy

Namespace:  Jam.Shell
Assembly:  ShellBrowser (in ShellBrowser.dll) Version: 6.2
Syntax
public abstract class CustomEditComboBox : ComboBox, 
	ISupportInitialize, ISupportInitializeNotification

The CustomEditComboBox type exposes the following members.

Constructors
  NameDescription
Protected methodCustomEditComboBox
Default Constructor, registers to the ComboBox Initialized event.
Top
Properties
  NameDescription
Public propertyFont
Gets or sets the font of the text displayed by the control and adapts UseSystemFont is set to false.
(Overrides ControlFont.)
Public propertyIsInitialized
Gets a value indicating whether the component is initialized.
Protected propertyOverlayTextBox
Provides access to the TextBox field of the control.
Public propertyShellAutoCompletionMode
This property controls the availability of the shells autocompletion mode, if set to FileSystem, Url or both, the ComboBox provides a TextField the user can type to. If disabled the default combobox behavior without editing functionality is used. Both, FileSystem and Url can be specified at once and are enabled by default. ShellAutoComplete.Url needs to be used to also provide autocompletion for UNC-Paths.
Public propertyUseSystemFont
Set this property to true if you want the component to utilize the default system font. It is also set to true if the UseSystemStyles property is set.
Public propertyUseSystemStyles
Use this property to turn on or off the usage of the system specific design, i.e. enable Vista visual styles of the explorer components.
Top
Methods
  NameDescription
Protected methodAdjustTextBoxSize
Adjusts the size of the edit field so that it is inside the combo box.
Public methodBeginInit
Signals the object that initialization is starting.
Public methodEnableSystemStyles
Sets system specific behaviour, i.e. FullRowSelect in Vista and upwards.
Public methodEndInit
Signals the object that initialization is complete.
Protected methodOnCreateControl (Overrides ControlOnCreateControl.)
Protected methodOnHandleCreated
This event is triggered after the handle of the control was created.
(Overrides ComboBoxOnHandleCreated(EventArgs).)
Protected methodOnOverlayResize
This method is called from the OverlayTextBox.Resize Event. It calls the AdjusTextBoxSize method.
Protected methodOnSizeChanged
This event is triggered after the size of the combobox changed. Fixes bug #4397.
(Overrides ControlOnSizeChanged(EventArgs).)
Protected methodSetFont
Sets the font without adjusting other properties.
Top
Events
  NameDescription
Public eventInitialized
Occurs when initialization of the component is completed.
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