
November 27th, 2004, 03:52 PM
|
|
Contributing User
|
|
Join Date: Sep 2003
Posts: 44
Time spent in forums: < 1 sec
Reputation Power: 5
|
|
|
Formatting ListBox
I am having difficulties with formatting listbox. I have 3 coulumns and 4 rows. such as
Name Phonenumber Married
Tim 123-4569 Y
Jack 546-8965 N
Phil 596-8745 Y
So now I would like to display these two colums so that 1st row the header is going to be bold and underlined.
For rest of the rows, 1st coulmns will be right justified, 2nd column will be Left justified and 3rd column will be center justified.
I am using VB.NET and doing windows application. I tried the following code:
dim fmt as stirng
fmt = {0,10}{1,20}{2,30}
lstbox.items.add(string.format(fmt,"Name","Phone","Married"))
But I am not getting the right allignement.
Can you suggest me any online tutorial about ListBox formatting or solve the problem.
|