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 / December 2007

Tip: Looking for answers? Try searching our database.

Make Listbox behave like a combobox (sort of)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DocBrown - 20 Dec 2007 07:43 GMT
I have a multiselect listbox. When the form opens, the list box height is
240, ie one line high. This makes my form with many listboxes compact until
the user wants to select an item in the listbox. I have the GotFocus event to
set the height to the number of items in the listbox (up to a max size of say
5 lines). The LostFocus event reduces the hight back to one line height.

My question is: If an item is selected, and the user clicks on a different
control, can I make a selected item the one that is visible in my one line
height, ie, set the scroll position?
Dale Fye - 20 Dec 2007 16:32 GMT
Doc,

Check out Steve Leban's response to a similar question at:

http://www.thescripts.com/forum/thread538150.html

Steve is a wizard with list and other controls and has some cool stuff on
his website:

www.lebans.com

HTH
Dale
Signature

Don''t forget to rate the post if it was helpful!

email address is invalid
Please reply to newsgroup only.

> I have a multiselect listbox. When the form opens, the list box height is
> 240, ie one line high. This makes my form with many listboxes compact until
[quoted text clipped - 5 lines]
> control, can I make a selected item the one that is visible in my one line
> height, ie, set the scroll position?
 
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.