This property sets or retrieves the ToolStripComboBox control displaying the "BorderShape" item of the ToolBarSetupObjects control.

[Visual Basic]Public Property ComboBoxBorderShape As System.Windows.Forms.ToolStripComboBox
[C#]public System.Windows.Forms.ToolStripComboBox ComboBoxBorderShape {get; set;}

Property Value

A value of type System.Windows.Forms.ToolStripComboBox

Explanation

The ComboBoxBorderShape property sets or retrieves the ToolStripComboBox control displaying the "BorderShape" item of the ToolBarSetupObjects control.

Because the "BorderShape" combobox is a ToolStripComboBox control, you can use the ComboBoxBorderShape property to change the "BorderShape" combobox settings, generate events, etc.

Please refer to the examples below.

Examples

(1) To change the background color displayed in the "BorderShape" combobox

[Visual Basic.NET]
      ToolBarSetupObjects1.ComboBoxBorderShape.BackColor = Color.FromArgb(255, 255, 192)

[Visual C#.NET]
      toolBarSetUpObjects1.ComboBoxBorderShape.BackColor=Color.FromArgb(255, 255, 192);

(2) Access the "BorderShape" combobox's SelectedIndexChanged event.

[Visual Basic.NET]
     'In the FormLoad event, set the ComboBoxBorderShape's SelectedIndexChanged event handler
     AddHandler ToolBarSetupObjects1.ComboBoxBorderShape.SelectedIndexChanged, AddressOf ComboBoxBorderShape_SelectedIndexChanged

     'event
     Private Sub ComboBoxBorderShape_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
          'Write code here that you want to execute when the event fires
     End Sub

[Visual C#.NET]
      //In the FormLoad event, set the ComboBoxBorderShape's SelectedIndexChanged event handler
     toolBarSetUpObjects1.ComboBoxBorderShape.SelectedIndexChanged += new EventHandler(ComboBoxBorderShape_SelectedIndexChanged);

     //event
     private void ComboBoxBorderShape_SelectedIndexChanged(object sender, EventArgs e)
     {
          //Write code here that you want to execute when the event fires
     }

See Also

ToolBarSetupObjects Members | Newtone.ImageKit.Win.ToolBarSetupObjects

 

The ImageKit.NET3 is created by Newtone Corporation