RAYLWARD102
Well-known Member
- Joined
- May 27, 2010
- Messages
- 529
I've got a combobox that I created this way:
Ok.. I've created an on-screen keyboard using dynamically created buttons. The class module code behind each of those buttons reads:
It does put the letters from the buttons into the combobox, but the autocomplete is not working at all like how it would when you use the keyboard. Any idea's
Code:
Dim cb As Control
Set cb = UserForm3.Controls.Add("Forms.combobox.1")
With cb
.Top = 10
.Left = 5
.Height = 40
.Width = 500
.Font.Size = 28
.Name = "cb1"
.AutoWordSelect = True
For Each cell In spTY.Range("a2:a" & iRow).Cells
.AddItem cell.Value
Next cell
End With
Ok.. I've created an on-screen keyboard using dynamically created buttons. The class module code behind each of those buttons reads:
Code:
UserForm3.Controls("cb1").Value = UserForm3.Controls("cb1").Value & CmdGroup5.Caption
It does put the letters from the buttons into the combobox, but the autocomplete is not working at all like how it would when you use the keyboard. Any idea's