treee view add a node with image

I

iccsi

Dim ndPRO As Node

Set ndPRO = Me.tvwSB.Nodes.Add(, , , rsPRO!Provider, imgOpen)


I have above code to add a node to the treeview.
The node added, but I the image does not.
Can you please help me to add an image?

My I have .bmp file name or I need have the image in the image list
and using image from the list?



Your help is great appreciated,
 
M

Michael Gramelspacher

Dim ndPRO As Node

Set ndPRO = Me.tvwSB.Nodes.Add(, , , rsPRO!Provider, imgOpen)


I have above code to add a node to the treeview.
The node added, but I the image does not.
Can you please help me to add an image?

My I have .bmp file name or I need have the image in the image list
and using image from the list?



Your help is great appreciated,

Under the TreeCtrl Properties, do you have a Style selected which uses pictures?
 
I

inungh

Under the TreeCtrl Properties, do you have a Style selected which uses pictures?- Hide quoted text -

- Show quoted text -

no, I do not. It is default 7 which is
tvwTreeLinesPlusMinusPictureText
Do I need set this property?
I just see custom property.
Shoudl I paly with it?

Thanks again,
 
I

inungh

Under the TreeCtrl Properties, do you have a Style selected which uses pictures?- Hide quoted text -

- Show quoted text -

I tried to put an imge klist on the form and add bitmap files.
It shows the first bitmap picture at design time, but it does not show
at run time.

I tried to add picture in the custom of the tree view list, but it
does not let me.

any help is great appreciated,
 
M

Michael Gramelspacher

I tried to put an imge klist on the form and add bitmap files.
It shows the first bitmap picture at design time, but it does not show
at run time.

I tried to add picture in the custom of the tree view list, but it
does not let me.

any help is great appreciated,

Right-click the ImageList control and click on ImageListCtrl Object.
Then click on Properties. That opens the ImageListCtrl Properties window.
Click on the Image tab.
This gives you the commands to add and remove images.
This look to be relatively simple.
 

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