// Initialize gcComboFrame1.
private void InitialzeMyGcComboFrame()
{
SetComboFrameContentControl();
SetComboFrameDropDownControl();
CreateAndAddComboFrameSideButtons();
// Set gcComboFrame1's border style and color.
this.gcComboFrame1.BorderStyle = BorderStyle.FixedSingle;
this.gcComboFrame1.SingleBorderColor = Color.Black;
InitializeComboFrameDropDowSettings();
// Add event hanlder for the ShortcutKeyDown event.
this.gcComboFrame1.ShortcutKeyDown += new EventHandler<KeyEventArgs>(GcComboFrame1_ShortcutKeyDown);
// Add some events for gcComboFrame1.
this.gcComboFrame1.DropDownOpening += new EventHandler<CancelEventArgs>(GcComboFrame1_DropDownOpening);
this.gcComboFrame1.DropDownOpened += new EventHandler(GcComboFrame1_DropDownOpened);
this.gcComboFrame1.DropDownClosing += new EventHandler<DropDownClosingEventArgs>(GcComboFrame1_DropDownClosing);
this.gcComboFrame1.DropDownClosed += new EventHandler<DropDownClosedEventArgs>(GcComboFrame1_DropDownClosed);
this.gcComboFrame1.DropDownSizeChanged += new EventHandler(GcComboFrame1_DropDownSizeChanged);
}
' Initialize gcComboFrame1.
Private Sub InitialzeMyGcComboFrame()
SetComboFrameContentControl()
SetComboFrameDropDownControl()
CreateAndAddComboFrameSideButtons()
' Set gcComboFrame1's border style and color.
Me.gcComboFrame1.BorderStyle = BorderStyle.FixedSingle
Me.gcComboFrame1.SingleBorderColor = Color.Black
InitializeComboFrameDropDowSettings()
' Add event hanlder for the ShortcutKeyDown event.
AddHandler Me.gcComboFrame1.ShortcutKeyDown, AddressOf GcComboFrame1_ShortcutKeyDown
' Add some events for gcComboFrame1.
AddHandler Me.gcComboFrame1.DropDownOpening, AddressOf GcComboFrame1_DropDownOpening
AddHandler Me.gcComboFrame1.DropDownOpened, AddressOf GcComboFrame1_DropDownOpened
AddHandler Me.gcComboFrame1.DropDownClosing, AddressOf GcComboFrame1_DropDownClosing
AddHandler Me.gcComboFrame1.DropDownClosed, AddressOf GcComboFrame1_DropDownClosed
AddHandler Me.gcComboFrame1.DropDownSizeChanged, AddressOf GcComboFrame1_DropDownSizeChanged
End Sub