// Please use the following namespace
// using System.Windows.Forms;
// using GrapeCity.Win.Editors;
public void SetStatusBarAndTipSettings()
{
// Creates the GcComboBox control.
GcComboBox gcComboBox1 = new GcComboBox();
// Sets the string format to "Column0:Column1" of the StatusBar.Text as well as the ToolTip text of each list item.
gcComboBox1.ListDescriptionFormat = "[0] : [1]";
// Specifies the Column1 as the content for displaying the value of the subitem as statusbar's text as well as the ToolTip text of each list item.
// But the property will take effect only when the ListDescriptionFormat is not set.
gcComboBox1.ListDescriptionSubItemIndex = 1;
// Shows the statusbar.
gcComboBox1.StatusBar.Visible = true;
// Shows tool tip for each list item when mouse move to it.
gcComboBox1.ShowItemTip = true;
// Shows overflow tip both on the edit box and each sub item.
gcComboBox1.ShowOverflowTip = true;
}
' Please use the following namespace
' Imports System.Windows.Forms;
' Imports GrapeCity.Win.Editors;
Public Sub SetStatusBarAndTipSettings()
' Creates the GcComboBox control.
Dim gcComboBox1 As New GcComboBox()
' Sets the string format to "Column0:Column1" of the StatusBar.Text as well as the ToolTip text of each list item.
gcComboBox1.ListDescriptionFormat = "[0] : [1]"
' Specifies the Column1 as the content for displaying the value of the subitem as statusbar's text as well as the ToolTip text of each list item.
' But the property will take effect only when the ListDescriptionFormat is not set.
gcComboBox1.ListDescriptionSubItemIndex = 1
' Shows the statusbar.
gcComboBox1.StatusBar.Visible = True
' Shows tool tip for each list item when mouse move to it.
gcComboBox1.ShowItemTip = True
' Shows overflow tip both on the edit box and each sub item.
gcComboBox1.ShowOverflowTip = True
End Sub