Changing listbox columnwidth at runtime

G

Guest

Hi,

I have 6 comboboxes. The user wants to be able to sort/filter in any
combination with these comboboxes.
I have decided to change the rowsource(query) after each combobox update.
All of my data is displayed is a listbox.
My first problem is I can't seem to get the listbox columnwidth to change
after an update.
Listbox.Columncount works perfectly. However, Access seems to be entering
its own very small columnwidth sizes.

Please help.

Thanks
Gwen
 
S

Stephen Lebans

The Columnwidth property, at runtime, is expressed in TWIPS. There are 1440
TWIPS per inch.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
M

Marshall Barton

Gwen said:
I have 6 comboboxes. The user wants to be able to sort/filter in any
combination with these comboboxes.
I have decided to change the rowsource(query) after each combobox update.
All of my data is displayed is a listbox.
My first problem is I can't seem to get the listbox columnwidth to change
after an update.
Listbox.Columncount works perfectly. However, Access seems to be entering
its own very small columnwidth sizes.


All runtime form dimensions are specified in twips (1440 per
inch). Use that as a conversion factor when you construct
the ColumnWidths string.
 
G

Guest

Thank you very much.

Marshall Barton said:
All runtime form dimensions are specified in twips (1440 per
inch). Use that as a conversion factor when you construct
the ColumnWidths string.
 
G

Guest

Thank you very much!

Stephen Lebans said:
The Columnwidth property, at runtime, is expressed in TWIPS. There are 1440
TWIPS per inch.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 

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