Images in Visual Desginer

j4n

Member
Hi,

we are starting to implement a new .net UI with Progress 10.2b and Infragistics Controls 2009.

To keep the resource files (*.resx) that Progress generates for every .net Window as small as possible and to programatically restrict the developers from using non-standard images, we want to load images at runtime like this Button:Appearance:Image = System.Drawing.Image:FromFile("image.png") rather than setting the image-attribute in the visual designer.
We now have the problem (kinda obvious) that those images don't show up in the visual designer at design time. Even loading the images in the constructor of a class doesn't make them visible - and I always thought the visual designer instantiates the class to visualise it.
Do you guys see any chance to not use the "Image"-property in the visual designer and still be able to see the images at design time?

cheers
 
Top