so if my textbox is named textbox1 and my listbox is named
ltsdisplay, for the button that would make this all happen I would
just need to:
lstdisplay.items.textbox1(delimited.Split(",".ToCharArray()))
is that right? or no? I try this and I get an error...
On Feb 26, 5:20 pm, "Herfried K. Wagner [MVP]" <hirf-spam-me-
h...@gmx.at> wrote:
> "Tom Shelton" <tom_shel...@comcast.net> schrieb:
>
> >> How do I display delimited text on multiple lines in a listbox?
>
> >> For example in my textbox I have this:
> >> Joe Doe,123 Street,Mytown
>
> >> and In a listbox then I want to display:
> >> Joe Doe
> >> 123 Street
> >> Mytown
>
> >> How would I step through that string and seperate the words by the
> >> comma?
>
> > Cation - air code follows:
> > listbox1.items.addrange(delimited.Split(",".ToCharArray()))
>
> ... => 'delimited.Split(","c)'.
>
> --
> M S Herfried K. Wagner
> M V P <URL:http://dotnet.mvps.org/>
> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
|