Groups | Blog | Home
all groups > dotnet drawing api > july 2007 >

dotnet drawing api : problem in showing icons of devices in explorer of my project


senadityasingh NO[at]SPAM gmail.com
7/5/2007 11:06:45 PM
explanation of project:
in my project there are many devices and when these devices are going
to up ,they send their icons to explorer to show .if explorer does'nt
able to show icons of these devices through proper way then it shows
default icons of these devices.
multithreaded asychronous programming is implemented
in this. when explorer is open it communicate to devices through
interface if they are up then they return their icons as byte
array .then explore convert the byte array into icons or image to
show.and add this image into imagelist.

problem:
it was properly working with .net framework1.1 .but now my project is
migrated to .net framework2.0.now sometimes it is showing icons of
devices properly and sometimes showing default icons (with exception :
parameter is not valid in the method getindexfromlist()).in
getindexfromlist method of explore, we implemented
1-asyncronous call to devices and
2-after getting icons from devices as a byte array is converted into
image or icons and added to image list .
Bob Powell [MVP]
7/7/2007 12:00:00 AM
Can you post a code example that shows the problem.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.



[quoted text, click to view]

AddThis Social Bookmark Button