Wish ComboBox Like

Marco Maria Vilucchi

Active Member
Licensed User
hi,
i need a "combobox like" where the user can choice between 8000 italian cities....
Cause the great number of choices i need the placeing in the list with keyboard.
If user press R, then the list is placed at the first city starting with R.
Then he press O and the list is placed at the first city starting with RO.
And so on.
Who help me?
TKS
Marco
 

Marco Maria Vilucchi

Active Member
Licensed User
hi Erel,
i downloaded SearchView, but when i open the program it says: This file is from a newer version" and doesn't work.....
I bought B4I last week.... i've version 1.80
i think i need library itableview
What i must do?
Tks
Marco
 
Last edited:

Marco Maria Vilucchi

Active Member
Licensed User
ok now works.
I have 2 needs.

1) I would at the start, like in case of selectedchanged, that listview (lv) was not visible
2) I want to change listview color

In both cases if I add istrucions the App wait many seconds to show listview and then doesn't consider the istuctions.
I modified your code.
Here the code.

Case 1
Private Sub et_TextChanged (Old As String, New As String)
lv.Clear
If lv.Visible = False Then lv.Visible = True
If et.Text=Null Then lv.Visible = False '<=== This istruction
FillList(New)
End Sub

Case 2
Public Sub Initialize (Callback As Object, EventName As String)
et.Initialize("et")
et.ShowClearButton = True
lv.Initialize("lv", False)
lv.Visible = False
lv.Color=Colors.LightGray '<==== this istruction
prefixList.Initialize
substringList.Initialize
mCallback = Callback
mEventName = EventName
End Sub
 
Top