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 / ActiveX Controls / July 2003

Tip: Looking for answers? Try searching our database.

Need treeview example with images

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike Nygard - 26 Jul 2003 16:35 GMT
I'm developing a treeView in MS Access 2000 and want to place images
on some of the nodes.

When I tried this:

Set nodCurrent = objTree.Nodes.Add(nodParent, tvwChild, strKey,
"People", "C:\Images\myPicture.BMP")

Access tells me that I need to initialize the image.  Not sure what
that means.

Does anyone have a simple example of how to do this?

Thanks,
Mike
Ron Weiner - 26 Jul 2003 21:51 GMT
I believe that you need to add an ImageList control to your form, add your
Image(s) to the ImageList control, and finally bind that ImageList control
to the ImageList Property of the Tree Control.

Then you can
   Set nodCurrent = objTree.Nodes.Add(nodParent, tvwChild, strKey,
"People", 1)
to apply the first image in the list to the new node.

Ron W

> I'm developing a treeView in MS Access 2000 and want to place images
> on some of the nodes.
[quoted text clipped - 11 lines]
> Thanks,
> Mike
Astidis - 28 Jul 2003 23:37 GMT
You need to add an imagecontrol object in the form and set the control to use
the icons in the image control.
 
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



©2009 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.