I'm working on a program which has a drop-down, auto-complete feature similar to a programming IDE. The listbox follows the cursor and shows the dropdown right after it. If there's a potential value the listbox appears with all the available options listed. The problem I have is I make the listbox visible if there is an option and invisible when there . Once the listbox becomes invisible the next time I make it visible the textbox overlaps it. I need to be able to bring the listbox to the front whenever it is displayed. How can I do this?