TextBox thingy...
Whats the textbox with an arrow on the right side that when clicked it gives me some options below it?
That textbox that is used for the "choose country/language" info in installations. You cant actually write anything in it, just choose from some options that pops up below it. You know what i mean?
I cant find it anywhere.
Whats the class called?
[366 byte] By [
dahwan] at [2007-11-20 10:25:12]

# 3 Re: TextBox thingy...
This sucks!
Whatever i do i cant get text in the combobox before i click it
ComboBox_VistaVersion.Parent = GroupBox_Crack;
ComboBox_VistaVersion.Width += 30;
ComboBox_VistaVersion.Location = new Point(20, 30);
ComboBox_VistaVersion.Text = "Please choose your Vista version";
ComboBox_VistaVersion.SelectedText = "Home Basic";
ComboBox_VistaVersion.SelectedItem = 1;
ComboBox_VistaVersion.DrawMode = DrawMode.Normal;
ComboBox_VistaVersion.DropDownStyle = ComboBoxStyle.DropDownList;
ComboBox_VistaVersion.Items.AddRange(new string[] {
"Home Basic",
"Home Premium",
"Business",
"Ultimate"});
dahwan at 2007-11-9 11:37:22 >

# 4 Re: TextBox thingy...
if you mean the text it display as choosen then you can
do
GroupBox_Crack.Text="blablabla";
or
GroupBox_Crack.Text=GroupBox_Crack.Items[0].Text;
# 5 Re: TextBox thingy...
Dont you see my last post? I did that, but the ComboBox is blank when i start the application. Its odd =/
Any1 know how i can show text on it?
dahwan at 2007-11-9 11:39:18 >

# 7 Re: TextBox thingy...
Dont you see my last post? I did that, but the ComboBox is blank when i start the application. Its odd =/
Any1 know how i can show text on it?
In your form load, set the selection to 0. By default it is -1 meaning nothing is selected.
private void form_load(object sender, EventArgs e)
{
_uxComboBox.SelectedIndex = 0;
}
or maybe add the code to select the item after you add the items:
ComboBox_VistaVersion.Items.AddRange(new string[] {
"Home Basic",
"Home Premium",
"Business",
"Ultimate"});
ComboBox_VistaVersion.SelectedIndex = 0;
HTH
Mike B
MikeB at 2007-11-9 11:41:21 >
