How to add default index As Select in Combo box?

jothis

Active Member
Licensed User
HI

I Added A Combo Box To My Program And I Added Many Items to it But I Can't Add A Default Index.
eg:in listbox
listbox1.add("Select")
listbox1.add("1")
listbox1.add("2")
listbox1.add("3")

Is It Possible With Combo Box?
Please Help Me
jothis
:sign0085:
 

jothis

Active Member
Licensed User
Thankyou klaus for replay

But i thing you dont understand what i need
please see this attachement see the diffrence.

in listbox we can see the "SELECT". But It is not in combo box

Please help me
:sign0085:
 

Attachments

  • eg1.sbp
    574 bytes · Views: 172
  • Eg.zip
    150 bytes · Views: 166
Last edited:

klaus

Expert
Licensed User
Longtime User
In your test program you must add
B4X:
[FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff]
[SIZE=2][FONT=Courier New][COLOR=#0000ff]Sub [/COLOR][/FONT][/SIZE][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]App_Start[/SIZE][/FONT]
[SIZE=2][FONT=Courier New]Form1.Show[/FONT][/SIZE]
[SIZE=2][FONT=Courier New]ComboBox1.SelectedIndex=[/FONT][/SIZE][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800080][FONT=Courier New][SIZE=2][COLOR=#800080][FONT=Courier New][SIZE=2][COLOR=#800080]0[/COLOR][/SIZE][/FONT]
[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff]End Sub[/COLOR][/SIZE][/FONT]
[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT]

Look in my previous post, ComboBox1.SelectedIndex=0 was already there.

Best regards.
 
Top