ListBox control in Project Prof. 2003 VBA

G

germul

Hello group,

I'm creating a simple form in Project Prof. 2003 VBA with a ListBox on
it.

Manually I design this ListBox control:

ListBox.ColumnCount = 3
ListBox.ColumnHeads = True
ListBox.ColumnWidths = "35;240" ' 3rd value not needed
ListBox.Clear

Now I see the ListBox control on the form with the displayed empty
header line and three columns.

Ok, how do I set the column titles?
They shall be (from left to right): "ID" , "Name" , "Date".

I am in Project Prof. 2003 - not in Excel, not in Access, not in
Word, not in any other programm of MS Office.

Or is there a way to bind a ADODB.RecordSet to this ListBox?

Thanks for any advice.

Regards,
Gernot Mulisch
 
A

Adam Behrle

Hi Germul,

If it is available you can try the list view control.

While designing your form, right click the Toolbox and click
"Additional Controls". Look for and check "Microsoft ListView
Control ....". Setting the view property to lvwReport and
programmatically adding column headers might give you what you want.

Good luck!

Adam Behrle
QuantumPM
 

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