Hello,
Welcome to Visual WebGui!
To use an image in VWG, you need to first create a "Resources" folder under the project folder. Inside that folder, create an "Images" folder and place your image/s in this folder. These folders must be included in your project.
Open the Web.config file and make sure you have the following XML element inside the "Directories" section:
<Directory Code="Images" Path="Resources\images" />
If it is not there, add it.
With this done, all you'll need to do is create a new ImageResourceHandle and send to the constructor, the exact name of the image file (with the correct casing).
If you want to set the BackgroundImage property of a control, all you'll need to do is to initialize it with such an ImageResourceHandle object.
Regards,
Ori Cohen
The Visual WebGui team
|
|