C# Class NzbSearcher.CheckComboBox

Inherits from ComboBox and handles DrawItem and SelectedIndexChanged events to create an owner drawn combo box drop-down. The contents of the dropdown are rendered using the CheckBoxRenderer class.
Inheritance: System.Windows.Forms.ComboBox
显示文件 Open project: Heimiko/NzbSearcher

Public Methods

Method Description
CheckComboBox ( ) : System

C'tor

CheckComboBox_DrawItem ( object sender, DrawItemEventArgs e ) : void

Invoked when the ComboBox has to render the drop-down items.

CheckComboBox_SelectedIndexChanged ( object sender, EventArgs e ) : void

Invoked when the selected index is changed on the dropdown. This sets the check state of the CheckComboBoxItem and fires the public event CheckStateChanged using the CheckComboBoxItem as the event sender.

Method Details

CheckComboBox() public method

C'tor
public CheckComboBox ( ) : System
return System

CheckComboBox_DrawItem() public method

Invoked when the ComboBox has to render the drop-down items.
public CheckComboBox_DrawItem ( object sender, DrawItemEventArgs e ) : void
sender object
e System.Windows.Forms.DrawItemEventArgs
return void

CheckComboBox_SelectedIndexChanged() public method

Invoked when the selected index is changed on the dropdown. This sets the check state of the CheckComboBoxItem and fires the public event CheckStateChanged using the CheckComboBoxItem as the event sender.
public CheckComboBox_SelectedIndexChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void