Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I display my own icons and texts to files/folders shown in FileView ActiveX Control?

0
Posted

How can I display my own icons and texts to files/folders shown in FileView ActiveX Control?

0

You can display your own text or icons for files/folders shown in FileView. To change the text shown for a ListItem, you should use the Text property. You can change this property for each node in the OnAfterItemAdd event which is called after each node is added. item1.Text = item1.DisplayName + “*” To change the icons shown for a ListItem, you should use the IconIndex property. You can change this property for each node in the OnAfterItemAdd event which is called after each node is added. item1.IconIndex = 22 The above method allows you to display only those icons which are present in the system imagelist. If you want to display your own icons for nodes, then you should use the AddCustomIcon method. This method returns an index which you can then use with the IconIndex property. Dim index as Integer index= filevw.AddCustomIcon(“c:\test.ico”,Nothing) item1.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.