Print Page | Close Window

Problem with loading Icons in C#

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Task Panel
Forum Description: Topics Related to Codejock Task Panel
URL: http://forum.codejock.com/forum_posts.asp?TID=4747
Printed Date: 05 May 2024 at 10:59pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem with loading Icons in C#
Posted By: Hashemian
Subject: Problem with loading Icons in C#
Date 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net