This project is read-only.

Image loading: how?

Dec 15, 2013 at 12:15 AM
How can I load images on HTML panel?

<img src="logo.jpg" class="image-logo" /> logo.jpg is in the same folder as html file.

I use code template from samples:

// initializaion
_htmlPanel.ImageLoad += HtmlPanelOnImageLoad;

// handler
    private void HtmlPanelOnImageLoad( object sender, HtmlImageLoadEventArgs args )
        args.Callback( args.Src );
But image not shown. What's wrong?
Dec 15, 2013 at 12:23 AM
Edited Dec 15, 2013 at 3:00 PM
Problem solved :-)
You need to spesify full image file path:

args.Callback( Path.Combine( path, args.Src ) );

My bin is in one folder, image file in other.