Results 1 to 5 of 5

Thread: How to put a text On listbox (Textbox, or Label)

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2016
    Posts
    104

    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.

  2. #2
    Fanatic Member
    Join Date
    Jan 2013
    Posts
    685

    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.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2016
    Posts
    104

    Re: How to put a text On listbox (Textbox, or Label)

    Quote Originally Posted by Phill.W View Post
    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.

  4. #4
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    13,673

    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

  5. #5
    Frenzied Member
    Join Date
    Dec 2008
    Location
    Melbourne Australia
    Posts
    1,466

    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
  •  



Click Here to Expand Forum to Full Width