SunQuest
 
           Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old November 27th, 2004, 03:52 PM
szms szms is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 44 szms User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Formatting ListBox


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway