Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to create a listBox which floating on every controls of a form..
I draw a textBox in a groupBox, also draw a listBox under the textBox like autocomplete function of a textBox...
My problem is if the listBox height is longer than the groupBox it doesn't show the full length of listBox.

how to create a floating listBox?

thanks in Advance..
Posted
Comments
Jegan Thiyagesan 21-Feb-13 8:03am    
Have you thought of docking the list box to "Fill"?
JayantaChatterjee 21-Feb-13 8:12am    
if I docked listBox to fill it will fill the groupBox area, I don't want to do that.
I want to create like a autocomplete function,when the autocomplete suggestion box appears top of every controls.
I use listBox as a suggestion box..
CHill60 21-Feb-13 8:56am    
Could you have a listbox on the Form that has Visible = False until you need it then position it appropriately, set Visible=True and use BringToFront?
JayantaChatterjee 21-Feb-13 9:04am    
Sir, I solved it,
first draw a listbox and then draw the groupBox on form. after that just drag the groupBox on the list box. the listBox will appear top of the groupBox.... :-)
Jegan Thiyagesan 21-Feb-13 9:12am    
You can do it that way but it is not elegant. Perhaps you should think of using a separate form for the list box and show/hide them as needed.

1 solution

Just to pop it out of unanswered list.
OP commented: Sir, I solved it, first draw a listbox and then draw the groupBox on form. after that just drag the groupBox on the list box. the listBox will appear top of the groupBox.... :-)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900