Solved

Formatting output

Posted on 2004-09-12
2
200 Views
Last Modified: 2010-04-15
Hi,

I'm trying to format the output of a string so that it will create columns when displayed in a listbox.  For example, I'd like:

First Name, LastName, Age information on one string, but spaced to look orderly when there are multiple rows.  I tried simply using "\t" but soon realized that wouldn't work.

I'd like it to look like this:

Frank             Smith                42
Joseph           Anderson           55

Please give me any advice you can.

Thanks,
RA
0
Comment
Question by:ba272
2 Comments
 
LVL 22

Expert Comment

by:cookre
ID: 12040161
I tend to take the lazy approach by using a fixed width type face.  My second choice is a data grid.
0
 
LVL 10

Accepted Solution

by:
smegghead earned 500 total points
ID: 12040190
Use a listview, this has the option of adding columns.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now