ListBox Columns

G

Guest

I’m Working on a List Box that I would like to have 4 Columns with a Top row
as a header.
In Access VB I can use the following code to Display 4 rows
| Mo | Interest | Principal | Balance |

Me.lstResult.RowSource = "Mo;Interest;Principal;Balance"
lstResult.AddItem (MonthNumber & ";" & MonthlyInterest & ";" & PrincipalPaid
& ";" & RemainingBalance)

How can I do the same in VB? I tried
lstResult.Items.Add (MonthNumber & ";" & MonthlyInterest & ";" &
PrincipalPaid & ";" & RemainingBalance)
but I can’t get the columns.

thank You
Gus Chuchanis
 
H

Herfried K. Wagner [MVP]

Gus Chuch said:
I’m Working on a List Box that I would like to have 4 Columns with a Top
row
as a header.

Use a listview control instead.
 
G

Guest

Gus,

I don't think the listbox control is the best control for what you want to do.

I would look at the DataGridView control or even the ListView control.

Kerry Moorman
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top