Formatting listbox

Lol Owen

Registered User.
Local time
Today, 14:47
Joined
Mar 15, 2004
Messages
86
Hi all, posted this here as I'm not sure where else to put it!
In VB6 I have a listbox on a form. I'm using this primarily to display the contents of a recordset in rows. The problem I have is the alignment of the "columns" in the rows. Is there anyway to set the spacing of the "columns"? At the moment the data is not aligning vertically, this depends upon the length of the data in the preceeding column .

Any ideas anyone?

Cheers, Lol :D
 
Lol,

VB6?

I think you have a single-column listbox here.

You can seperate your data into "columns" as you say, even pad them with
spaces. But unless you go to a fixed-pitch font like Courier, the columns
won't line up.

Wayne
 
Cheers Wayne, I discovered vbTab last night and that does a fair job providing the strings are of a fairly consistent length. I'll try changing font and see if that makes any improvement.

Thanks, Lol :D
 

Users who are viewing this thread

Back
Top Bottom