Solved

Formatting output

Posted on 2004-09-12
2
202 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

831 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