Listbox problem in VB.NET

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Curl
    New Member
    • Nov 2007
    • 1

    Listbox problem in VB.NET

    Hey guys,
    I hope i have posted this in the right place as I couldnt find the VB.NET section.

    Im having a problem spliting an entry into a list box. At the moment I have got the program to take data from a file and put it in a listbox, but it is not being displayed in the same way. In the file the format is 20/11/2007, 12345 then on a new line 20/11/2007 67890, but the program just lists the entry as one continous line.

    Any ideas how I can do this??

    Curl
  • MikeTheBike
    Recognized Expert Contributor
    • Jun 2007
    • 640

    #2
    Originally posted by Curl
    Hey guys,
    I hope i have posted this in the right place as I couldnt find the VB.NET section.

    Im having a problem spliting an entry into a list box. At the moment I have got the program to take data from a file and put it in a listbox, but it is not being displayed in the same way. In the file the format is 20/11/2007, 12345 then on a new line 20/11/2007 67890, but the program just lists the entry as one continous line.

    Any ideas how I can do this??

    Curl
    Hi

    Having recently decided to write a little program in .NET, I encountered the same problem with ListBox, ie could not find any column setting in the properties or any method(s) to add data in coulmns.
    The solution (having serched the web and various sites) for multi-column lists seems to be to use a ListView control !!??

    This control seems to be little more complex (but with more facilities) but, hopefully (not finished population it yet), it will do the job.

    However, I am always willing to be persuaded otherwise (anybody?).

    MTB

    ps there is a .NET forum.

    Comment

    • QVeen72
      Recognized Expert Top Contributor
      • Oct 2006
      • 1445

      #3
      Originally posted by Curl
      Hey guys,
      In the file the format is 20/11/2007, 12345 then on a new line 20/11/2007 67890, but the program just lists the entry as one continous line.
      Curl
      Hi,

      What code, you are using to Populate the list box...?

      Regards
      Veena

      Comment

      Working...