Hi
I have a listbox in my project, and i want to put a text (List is empty) on listbox, but label or textbox goes behind listbox
How can I make this text on listbox.
Printable View
Hi
I have a listbox in my project, and i want to put a text (List is empty) on listbox, but label or textbox goes behind listbox
How can I make this text on listbox.
Not entirely sure what you're trying to do but to get one Control appearing in front of another, use the ZOrder method in code ...
.. or use the "Bring To Front" menu item in the Form designer.Code:call txtInFront.ZOrder( 0 )
There are limits to which controls can be "moved" in this way but a TextBox and a ListBox should be OK.
Regards, Phill W.
You could also simply put the text you want displayed in the list using the additem method
You could hide the list box and show a label or text box or image or whatever you like
All depends on what you want it to look like
You can also use a frame, placing the desired Label etc INTO the frame.
Remove the caption, and other tweaks so that the frame is not obvious.