Solved

Formatting output

Posted on 2004-09-12
2
204 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

749 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