This property sets or retrieves the ToolStripComboBox control displaying the "DashStyle" item of the ToolBarSetupLines control.

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

Property Value

A value of type System.Windows.Forms.ToolStripComboBox

Explanation

The ComboBoxDashStyle property sets or retrieves the ToolStripComboBox control displaying the "DashStyle" item of the ToolBarSetupLines control.

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

Please refer to the examples below.

Examples

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

[Visual Basic.NET]
      ToolBarSetupLines1.ComboBoxDashStyle.BackColor = Color.FromArgb(255, 255, 192)

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

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

[Visual Basic.NET]
     'In the FormLoad event, set the ComboBoxDashStyle delegate
     AddHandler ToolBarSetupLines1.ComboBoxDashStyle.SelectedIndexChanged, AddressOf ComboBoxDashStyle_SelectedIndexChanged

     'event handler delegate
     Private Sub ComboBoxDashStyle_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 ComboBoxDashStyle delegate
     toolBarSetUpLines1.ComboBoxDashStyle.SelectedIndexChanged += new EventHandler(ComboBoxDashStyle_SelectedIndexChanged);

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

See Also

ToolBarSetupLines Members | Newtone.ImageKit.Win.ToolBarSetupLines

 

The ImageKit.NET3 is created by Newtone Corporation