' Please use the following namespace
' Imports System.Windows.Forms;
' Imports GrapeCity.Win.Editors;
Public Sub SetTextFormat()
' Creates an instance of a GcMaskedComboBox control.
Dim gcMaskedComboBox1 As New GcMaskedComboBox()
' Sets the TextBoxStyle to show both the image and the text.
' If sets it to ImageOnly, text will not be displayed.
gcMaskedComboBox1.TextBoxStyle = TextBoxStyle.Both
' Sets the TextFormat to "[0] (Tel) [2]".
' And the text will display the first colum and the 3rd colum's text with the Tel string in the middle of the text.
gcMaskedComboBox1.TextFormat = "[0] (Tel) [2]"
End Sub
// Please use the following namespace
// using System.Windows.Forms;
// using GrapeCity.Win.Editors;
public void SetTextFormat()
{
// Creates an instance of a GcMaskedComboBox control.
GcMaskedComboBox gcMaskedComboBox1 = new GcMaskedComboBox();
// Sets the TextBoxStyle to show both the image and the text.
// If sets it to ImageOnly, text will not be displayed.
gcMaskedComboBox1.TextBoxStyle = TextBoxStyle.Both;
// Sets the TextFormat to "[0] (Tel) [2]".
// And the text will display the first colum and the 3rd colum's text with the Tel string in the middle of the text.
gcMaskedComboBox1.TextFormat = "[0] (Tel) [2]";
}