Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Is there a way of getting a column effect in a listBox? I am dragging three lots of data from a database and want to format in row within the listBox.

 

Example:

Harold Clements	26	Right Handed
James Smith	31	Right Handed
Tom Cooper	19	Left Handed 

Thanks in advance,

Harold Clements

Posted

try this out

 

dim str as string

str={0,10}{1,4}{2,8}

 

where 0,1,2 are the index and 10,4,8 are the length

 

use

listbox1.items.add(string.format(str,"name","age","salary")

this will give 3 columns in your lisstbox ... u can have more if u want

 

but instead u can use listview ,.... thats much better and looks much neat

 

try listview ... thats the best option u can get

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...