How to display some text into a "listbox"?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • kimiraikkonen

    How to display some text into a "listbox"?

    Hi experts,
    I need to display some custom text ouptut in a Listbox and the first 4
    lines of listbox (index items) will be removed.

    the problem is not to know how to display custom text "line by line"
    in a Listbox?

    Thanks...

  • Herfried K. Wagner [MVP]

    #2
    Re: How to display some text into a "listbox&q uot;?

    "kimiraikko nen" <kimiraikkonen8 5@gmail.comschr ieb:
    I need to display some custom text ouptut in a Listbox and the first 4
    lines of listbox (index items) will be removed.
    >
    the problem is not to know how to display custom text "line by line"
    in a Listbox?
    I fear I do not completely understand the problem. Are you using a data
    source or data binding to fill the control or are you filling it using
    '<ListBox>.Item s.Add'?

    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

    Comment

    • kimiraikkonen

      #3
      Re: How to display some text into a &quot;listbox&q uot;?

      Hi,
      I don't know the exact phase calling it in VB, but the thing i want to
      perform is:

      Think a textbox, i want to display it's content "as same as" in
      listbox and every sentence in text must be displayed as lines, line by
      line.

      How is it possible?

      For example: A text box shows: "This group is very useful.
      I really like to be
      helped by experts..."

      Listbox must show: This group is very useful ---
      This is line1 (item 1)
      I really like to be
      helped by experts --------This is line2 (item 2)

      Thanks...

      Comment

      Working...