dotgnu-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[DotGNU]cast to bitmap from resource file


From: blt
Subject: [DotGNU]cast to bitmap from resource file
Date: Tue, 13 Jan 2004 01:26:41 -0600 (CST)
User-agent: SquirrelMail/1.4.2-1

The following code compiles fine on VS.NET but under pnetlib 0.6.2 it does
not like the cast to Bitmap. Any idea what might cause this?

ResourceManager resourceManager = new ResourceManager("Bitmaps",
GetType().Assembly);
imgList.ImageSize  = new Size(32,15);
imgList.Images.Add((Bitmap)resourceManager.GetObject ("UnSelectedDir.bmp"));
imgList.Images.Add((Bitmap)resourceManager.GetObject ("UnSelectedFile.bmp"));
imgList.Images.Add((Bitmap)resourceManager.GetObject
("PartlySelectedDir.bmp"));
imgList.Images.Add((Bitmap)resourceManager.GetObject
("PartlySelectedIncrementalDir.bmp"));
imgList.Images.Add((Bitmap)resourceManager.GetObject
("FullySelectedDir.bmp"));
imgList.Images.Add((Bitmap)resourceManager.GetObject
("FullySelectedIncrementalDir.bmp"));
imgList.Images.Add((Bitmap)resourceManager.GetObject ("SelectedFile.bmp"));
imgList.Images.Add((Bitmap)resourceManager.GetObject
("IncrementalFile.bmp"));


reply via email to

[Prev in Thread] Current Thread [Next in Thread]