treee view add a node with image

  • Thread starter Thread starter iccsi
  • Start date Start date
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,
 
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?
 
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,
 
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,
 
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.
 
Back
Top