In Visual WebGUI it used IconResourceHandle(“TrashCan.gif”) what is the recommended method to do the same thing?
Thanks,
Tim
Depending on where the image is and if you want to use an embedded image or a file:
To use a file:
control.ImageSource = “TrashCan.gif”;
control.ImageSource = “Images/TrashCan.gif”;
control.ImageSource = “http://server-somewhere.com/TrashCan.gif”;
To use resources instead use the Image property as in winforms:
control.Image = Resource.TrashCan;
etc.
Basically Image works exactly like in winforms. ImageSource takes a string which can be a name in the theme, a url, or a file name in the project.
Best,
Luca