-
Mar 3rd, 2017, 03:56 AM
#1
Thread Starter
Lively Member
How to put a text On listbox (Textbox, or Label)
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.
-
Mar 3rd, 2017, 10:31 AM
#2
Re: How to put a text On listbox (Textbox, or Label)
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 ...
Code:
call txtInFront.ZOrder( 0 )
.. or use the "Bring To Front" menu item in the Form designer.
There are limits to which controls can be "moved" in this way but a TextBox and a ListBox should be OK.
Regards, Phill W.
-
Mar 3rd, 2017, 11:19 AM
#3
Thread Starter
Lively Member
Re: How to put a text On listbox (Textbox, or Label)
 Originally Posted by Phill.W
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 ...
Code:
call txtInFront.ZOrder( 0 )
.. or use the "Bring To Front" menu item in the Form designer.
There are limits to which controls can be "moved" in this way but a TextBox and a ListBox should be OK.
Regards, Phill W.
Thank you Phill W.
-
Mar 5th, 2017, 03:02 PM
#4
Re: How to put a text On listbox (Textbox, or Label)
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
-
Mar 5th, 2017, 10:06 PM
#5
Re: How to put a text On listbox (Textbox, or Label)
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.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|