Resource handlers

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!
0
0

In Visual WebGUI it used IconResourceHandle(“TrashCan.gif”) what is the recommended method to do the same thing?

 

Thanks,

Tim

  • You must to post comments
0
0

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

  • You must to post comments
Showing 1 result
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Attachment
File Name Size
There are currently no files uploaded.
Maximum number of files 1, maximum file size 3.9MB.
Supported file formats: zip pdf gif jpg bmp png cs vb theme json