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 / Developer Toolkits / April 2005

Tip: Looking for answers? Try searching our database.

Listbox Window Handle

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Craig - 27 Apr 2005 15:22 GMT
Hi all,

I am trying to create a search text box that references a list box control.
The idea is to allow a user to type information into a text box, and have the
list box immediately move to the selection as it is being typed.

I found code referencing the hWnd property of the listbox. The problem is
that there is no hWnd property for a listbox in Access, or at least I can't
seem to find it.

I am using Access 2002 SP-1.

Thus; List1.hWnd does not exist. Yet, whereever I see code referring to
using the hWnd property, everybody uses something like List1.hWnd?? What am I
missing?

Thanks,
Craig
Alex Dybenko - 27 Apr 2005 16:50 GMT
Hi,
Access controls are differ from windows controls, and they have hwnd only
when have focus.
you can get a reference to listbox as object and then loop through it items
and select which one you need using VBA methods

Signature

Alex Dybenko (MVP)
http://Alex.Dybenko.com
http://www.PointLtd.com

> Hi all,
>
[quoted text clipped - 18 lines]
> Thanks,
> Craig
 
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.