Problem with loading Icons in C# |
Post Reply |
Author | |
Hashemian
Newbie Joined: 06 August 2006 Location: Iran Status: Offline Points: 1 |
Post Options
Thanks(0)
Posted: 06 August 2006 at 12:54pm |
Hello,
I'm progarmming with C# 2005 and for designing one of my forms, I decided to use TaskPanel control. so I began with tutorial to see how can I use that. The tutorial was wrotten in VB 6. I convert it's code to C# and every thing was well. for icons, I try to use ImageList in .NET and after setting it's icons I sent it as a parameter to SetImageList method, but at run time an error occurred and said can not cast Imagelist to Object.
I try to use LoadIcon method to manually load my Icons, but it makes no differences. in this way it doesn't seems that Icons became loaded, because the icons didn't shown and also no errors occurred.
So how can I load icons in C# for TaskPanel?
Best regards.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |