Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

MSComctlLib.TreeView from Sample UI 16.ActiveX

Hi to evrybody,

i tried to customize the treeview either in and c# , (visual studio 2008 , XP sp 3 )

my big trouble is to set the icon to tree view....

somebody can help me ?!

This is the last version of my code....

I can't' add image to imageList1 object....

object oImage; 
oImage = Microsoft.VisualBasic.Compatibility.VB6.Support.ImageToIPictureDisp(System.Drawing.Image.FromFile("C:\\openfold.ico"));

      imageList1.ListImages.Add(ref Key, ref Key, ref oImage);

Somebody can Help me?

best regards


Former Member
Not what you were looking for? View more on this topic or Ask a question