WinForms Listview and Treeview icon is not being displayed

Add-in Express™ Support Service
That's what is more important than anything else

WinForms Listview and Treeview icon is not being displayed
 
Jeffery Goh




Posts: 15
Joined: 2006-02-15
Hi,

I'm using VS.NET 2005 to develop Add-in, my project cotaints a winform which has treeview and listview inside. Something strange, all the icons of the controls are not displayed when it called from the add-in. But it does displayed if it is not called by the add-in.

Please advice.

Thanks.
Posted 15 Feb, 2006 02:19:27 Top
Sergey Grischenko


Add-in Express team


Posts: 7228
Joined: 2004-07-05
Hi Jeffery.

What host application do you use? Is the form 'Dialog' or 'StayOnTop' form?
Posted 15 Feb, 2006 09:05:30 Top
Jeffery Goh




Posts: 15
Joined: 2006-02-15
yes, it is a Dialog form.
Posted 15 Feb, 2006 19:36:28 Top
Jeffery Goh




Posts: 15
Joined: 2006-02-15
i have tried both Dialog Form and Normal Form...
Both method are not workable. :(
Posted 15 Feb, 2006 22:56:58 Top
Sergey Grischenko


Add-in Express team


Posts: 7228
Joined: 2004-07-05
Hi Jeffery.

I used to get this issue with third party controls on .NET Forms in Outlook and Word. Probably you need to try other .NET controls.
Posted 16 Feb, 2006 07:41:58 Top
Jeffery Goh




Posts: 15
Joined: 2006-02-15
Sergey,

Treeview and Listview are the common control in my project, i can't replace all of them, is there any other workaround. Thanks.
Posted 16 Feb, 2006 19:53:22 Top
Sergey Grischenko


Add-in Express team


Posts: 7228
Joined: 2004-07-05
Hi Jeffery.

Can you send me the code of your project? The point is that I can't reproduce the issue on my PC.
Posted 18 Feb, 2006 14:29:42 Top
Jeffery Goh




Posts: 15
Joined: 2006-02-15
Hi sergey,

Sorry i was away for past few days. I think i found the problem, whenever i put an icon into an imagelist in the addinmodule, it cause the problem.

I have sent you(sergey@afalinasoft.com) my sample project, please help me if you can solve it.

Thanks.
Posted 22 Feb, 2006 20:27:48 Top
Sergey Grischenko


Add-in Express team


Posts: 7228
Joined: 2004-07-05
Hi Jeffery.

Why do you use the AddinExpress.MSO.dll in the project for VS 2005?
It should be the AddinExpress.MSO.2005.dll. I think it could be a cause of the problem with the ImageList component.

I tested the project. Yes, you are right. Icons are not shown in the TreeView component. It looks like a bug in the TreeView for VS 2005 because the same project works fine in VS 2003.
Posted 23 Feb, 2006 06:51:58 Top
Jeffery Goh




Posts: 15
Joined: 2006-02-15
Sergey Grischenko wrote:
Why do you use the AddinExpress.MSO.dll in the project for VS 2005?
It should be the AddinExpress.MSO.2005.dll. I think it could be a cause of the problem with the ImageList component.


It's auto referenced by the project when i created through the ADX Add-in's wizard. I will reference to the AddinExpress.MSO.2005.dll and try again.


Sergey Grischenko wrote:
I tested the project. Yes, you are right. Icons are not shown in the TreeView component. It looks like a bug in the TreeView for VS 2005 because the same project works fine in VS 2003.


But have u notice once the imagelist removed from the add-in module, the treeview's icon get shown back.
Posted 23 Feb, 2006 12:08:09 Top