Paul wrote:
> Hi,
> 
[snip]
> I've run a debugger through the code and the string returned when
> reading the xml line is correct (for example hydrogen returns
> global::molarity.Properties.Resources.Hydrogen which corresponds to the
> file Hydrogen.jpg in the Resources directory). Should I be using
> element.LoadImage() to load the image followed by an invalidate()? or
> should it be done another way?

It would be helpful if you show us some code excerpt for this.

Are using something like below?

<element image="Resources/Hydrogen.jpg" ... />

element.LoadImage(node.GetAttribute("image"))

If so, then Hydrogen.jpg should be located in the Resources subdirectory 
of current directory when your program is running.  It won't "magically" 
find the needed file even if it was compiled into your program resources.

Typically, you use resources for hard-coded images (more generally, 
data), not for data which location is specified in external files like 
in your xml.

--
Regards,
Alex
_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Reply via email to