samsmithnz
Senior Contributor
I have a Dynamic listbox that I am creating, it's going to be a sort of popup list that you can select from and filters as you're typing. It all works pretty well, except that it's always in the back and a .BringtoFront doesn't seem to do ANYTHING.
Anyone have a clue what I'm doing wrong?
Anyone have a clue what I'm doing wrong?
Code:
'add the dropdown list
lstDropDown = New ListBox
With lstDropDown
.Top = txtDisplayTextBox.Top + txtDisplayTextBox.Height
.Left = txtDisplayTextBox.Left
.Height = 95
.Width = txtDisplayTextBox.Width
.Visible = True
.BringToFront()
End With
frmParent.Controls.Add(lstDropDown)