Thread: Multiple Lines in ListBox

  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    98

    Multiple Lines in ListBox

    How can I have multiple lines in a listBox item? When I add a new item and the text has newlines(\n), then it displays the newlines as blocks. It there any way to get it to display multiple lines per item?

  2. #2
    Registered User AtomRiot's Avatar
    Join Date
    Jan 2003
    Posts
    120
    Quote Originally Posted by Mavix View Post
    How can I have multiple lines in a listBox item? When I add a new item and the text has newlines(\n), then it displays the newlines as blocks. It there any way to get it to display multiple lines per item?
    http://www.codeguru.com/cpp/controls...cle.php/c2291/
    All Your Base Are Still Belong to Someone!!!
    And you Remember that!!!

  3. #3
    Registered User
    Join Date
    Sep 2006
    Posts
    98
    I found a multiline listbox for C# after googling it, and it works. Well, it works if I create a new project, and add it on an empty form with a button and a text box to test it. But when I put it in the program I'm writing and try to compile it, then it gives an error message saying:
    " Assembly generation failed -- Referenced assembly 'MultiLineListBox' does not have a strong name. "

    What does this mean, and how can I fix it?

  4. #4
    Registered User AtomRiot's Avatar
    Join Date
    Jan 2003
    Posts
    120
    i have never had this issues but there is a KB for it.

    http://support.microsoft.com/kb/313666

    sorry to only be posting links but once again i have never seen this issue.
    All Your Base Are Still Belong to Someone!!!
    And you Remember that!!!

  5. #5
    Registered User
    Join Date
    Sep 2006
    Posts
    98
    Quote Originally Posted by AtomRiot View Post
    i have never had this issues but there is a KB for it.

    http://support.microsoft.com/kb/313666

    sorry to only be posting links but once again i have never seen this issue.
    Thanks I'll check it out.
    BTW I was just wondering, what does KB stand for?

  6. #6
    Registered User
    Join Date
    Oct 2001
    Posts
    2,129
    knowledge base

  7. #7
    Registered User
    Join Date
    Sep 2006
    Posts
    98
    Ok thanks. I tried what they said, but there is no Common Properties tree. In fact, there are no trees at all!
    Please help. (I am using Visual C# 2005 Express).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. ListBox Extra Data Storage
    By Welder in forum Windows Programming
    Replies: 1
    Last Post: 11-01-2007, 01:46 PM
  2. Listbox search
    By Elsindes in forum Windows Programming
    Replies: 4
    Last Post: 04-09-2007, 03:47 PM
  3. Replies: 1
    Last Post: 06-07-2006, 09:42 AM
  4. A problem with reading multiple lines from a file
    By edd1986 in forum C++ Programming
    Replies: 6
    Last Post: 03-19-2006, 01:26 PM
  5. Multiple lines on an Edit box
    By RubenJ in forum Windows Programming
    Replies: 3
    Last Post: 09-20-2001, 02:51 PM