What can someone use for a Combobox on the device to accept input too?
A library of somekind?
A library of somekind?
[FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff]Sub [/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]Combobox1_SelectionChanged(Index,Value)[/SIZE][/FONT]
[SIZE=2][FONT=Courier New]textbox1.Text=Combobox1.Item(Combobox1.SelectedIndex)[/FONT][/SIZE]
[/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]
[FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff]Sub [/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]Combobox1_SelectionChanged(Index,Value)[/SIZE][/FONT]
[SIZE=2][FONT=Courier New]textbox1.Text=Value[/FONT][/SIZE]
[/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]
Here is the correct code.
I added the listbox later on and didn't test every thing again.
Sorry for that and best regards.
Sub btnDelete_Click
[B]If cbxTest.Count>0 Then[/B]
cbxTest.RemoveAt(SelI)
lbxTest.RemoveAt(SelI)
If SelI>cbxTest.Count-1 Then
SelI=SelI-1
End If
cbxTest.SelectedIndex=SelI
lbxTest.SelectedIndex=SelI
[B]End If [/B]
End Sub
Sub btnInsert_Click
[B]If cbxTest.Count>0 Then[/B]
cbxTest.Insert(SelI,txtTest.Text)
lbxTest.Insert(SelI,txtTest.Text)
cbxTest.SelectedIndex=SelI
lbxTest.SelectedIndex=SelI
[B]End If [/B]
End Sub
[FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff]Sub [/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]btnInsert_Click[/SIZE][/FONT]
[/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff]If[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2] SelI=-[/SIZE][/FONT][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800080][FONT=Courier New][SIZE=2][COLOR=#800080][FONT=Courier New][SIZE=2][COLOR=#800080]1 [/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]Then[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT]
[SIZE=2][FONT=Courier New][SIZE=2][FONT=Courier New]SelI=[/FONT][/SIZE][/FONT][/SIZE][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 [/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]If[/COLOR][/SIZE][/FONT]
[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]cbxTest.Insert(SelI,txtTest.Text)[/SIZE][/FONT]
[SIZE=2][FONT=Courier New]lbxTest.Insert(SelI,txtTest.Text)[/FONT][/SIZE]
[SIZE=2][FONT=Courier New]cbxTest.SelectedIndex=SelI[/FONT][/SIZE]
[SIZE=2][FONT=Courier New]lbxTest.SelectedIndex=SelI[/FONT][/SIZE]
[/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]
:sign0098: I never thought of that! I wonder why the default is different on the desktop and the device?Entering text in combo boxes is not supported. Using the Door library this can be achieved
Obj1.FromControl("Combobox1")
Obj1.SetProperty("DropDownStyle", "DropDown")
cboKeyPress.New1(Obj1.Value, "KeyPress")
cboTextChanged.New1(Obj1.Value, "TextChanged")
Sub cboKeyPress_NewEvent
Obj1.Value = cboKeyPress.Data
keychar = Obj1.GetProperty("KeyChar")
'Msgbox(keychar, "Key press")
If Asc(keychar) = 13 Then
Obj1.FromControl("Combobox1")
Msgbox(Obj1.GetProperty("Text"), "Enter!")
End If
End Sub
Sub cboTextChanged_NewEvent
Obj1.FromControl("Combobox1")
combotext = Obj1.GetProperty("Text")
End Sub