Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / July 2007

Tip: Looking for answers? Try searching our database.

Setting widths in a listbox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Akilah - 20 Jul 2007 14:30 GMT
I have a listbox with 9 columns, I can set the width of all but the ninth
column.  I've set it in the property box and through VBA, but it never stays
set.  On the form, it goes way beyond the set width.  How can I fix it?

Thanks
Douglas J. Steele - 20 Jul 2007 14:41 GMT
What have you got for the ColumnWidths property and for the ListWidth
property?

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)

>I have a listbox with 9 columns, I can set the width of all but the ninth
> column.  I've set it in the property box and through VBA, but it never
> stays
> set.  On the form, it goes way beyond the set width.  How can I fix it?
>
> Thanks
Akilah - 20 Jul 2007 21:02 GMT
I have lstActiveUsers.ColumnWidths = "1 in;0.5 in;1.5 in;1 in;2 in;1 in;1
in;1 in;1 in;" but I don't have anything for ListWidths

> What have you got for the ColumnWidths property and for the ListWidth
> property?
[quoted text clipped - 5 lines]
> >
> > Thanks
Douglas J. Steele - 20 Jul 2007 23:28 GMT
Try setting the ListWidth property to 10 in.

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)

>I have lstActiveUsers.ColumnWidths = "1 in;0.5 in;1.5 in;1 in;2 in;1 in;1
> in;1 in;1 in;" but I don't have anything for ListWidths
[quoted text clipped - 9 lines]
>> >
>> > Thanks
Steve - 21 Jul 2007 01:58 GMT
There's no Listwidth property for a listbox!!

Maybe you should advise the OP to expand the listbox to 30 columns since you
think that is not so outrageous. He could very well have a legitimate
reason!

PC Datasheet
Providing Customers A Resource For Help With Access, Excel And Word
Applications
resource@pcdatasheet.com

> Try setting the ListWidth property to 10 in.
>
[quoted text clipped - 12 lines]
>>> >
>>> > Thanks
John Marshall, MVP - 21 Jul 2007 08:58 GMT
steve please get back on your medication.

John...    Visio MVP

> Maybe you should advise the OP to expand the listbox to 30 columns since
> you think that is not so outrageous. He could very well have a legitimate
> reason!
>
> PC Datasheet
Akilah - 31 Jul 2007 19:46 GMT
I tried but I got the message "Method or data member not found"

> Try setting the ListWidth property to 10 in.
>
[quoted text clipped - 11 lines]
> >> >
> >> > Thanks
Douglas J. Steele - 31 Jul 2007 20:42 GMT
You're right: I misread your question, and thought you were dealing with a
combo box.

Afraid I don't have a suggestion for a list box.

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

>I tried but I got the message "Method or data member not found"
>
[quoted text clipped - 16 lines]
>> >> >
>> >> > Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.