Make TListBox topmost

Gents,

I am calling a Tlistbox using a regular button. (Changing the TListBox visible property)

All works fine until I maximize a pannel within the form and restore it to its original location.

Thereafter my Tlistbox apears underneath the panel and I cannot read it.

Any idea how to solve this issue?

Before you ask, I use a tlistbox because its content is built from a database and need the scroll bar as I can have hundreds of items...

Many thanks
etiennedemersAsked:
Who is Participating?
 
SteveBayConnect With a Mentor Commented:
have you tried
     ListBox1.BringToFront;
0
 
rfwoolfCommented:
Cut the ListBox (Select the listbox, press Ctrl + X)
Paste it in the panel (Click the panel you want to use as its parent and pres Ctrl + V)
If necessary you can set the Top and Left property of the Listbox
0
 
etiennedemersAuthor Commented:
Actually the simplest solution worked best.

ListBox1.BringToFront;

I just crossed over from vb.net and was still looking for the topmost property...


Many thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.