Toni
Rgds
Posted by garsio on Monday, August 24, 2009 12:26 PM
# garsio
"background-image:url(Skins.ToolBottomRight.gif.wgx)"
Posted by garsio on Monday, August 24, 2009 12:27 PM

Post Comment

Only registered users may post comments.

Brockmann: "Creating Rich Web
Applications Gets a Ton Easier"

e-grou chooses Visual WebGui
over standard ASP.NET

Quick migration of VB 6.0
Applications to the Web

Fully functional software versions
for 30 days evaluation period

Download the free edition of the
Visual WebGui Studio
 

Code Snippets

itzik.spitzen posted on December 26, 2007 :: 2762 views

This sample code demonstrates how to embed images in UserControls library using the AssemblyResourceHandle, which enables loading embedded resources.

UserControl1 uses an embedded resource image named 2.GIF which is placed in Images folder under the project root; therefore, the AssemblyResourceHandle gets the full path name: "UserControlWithResources.Images.2.GIF".

<Root Namespace>.<folders path>.<image name>.<extension>

Download Code

Note: Codes are submitted as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Terms of Agreement:
By using this code, you agree to the following terms...

  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame.
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.

Post Rating

Comments

# parcol
Why can't an image be embedded in a web application? Why the usercontrol way?

I tried embedding an image in a vb.net control library but that does not work. In C# it works fine.

Arco Stolk
Posted by parcol on Wednesday, July 22, 2009 1:14 PM
# garsio
How to reference the embedded image in an xslt control file like:

Most promising startups
Top 3 most promising startups in 2009
   AJAX Framework | Web Development | Cloud applications | RIA Development | Silverlight Applications | Legacy Migration
The most popular open source Ajax applications framework for enterprises | Sitemap | Terms Of Use | Privacy Statement
Copyright © 2005-2009 Visual WebGui®    Design By: Template World
   
Visual Studio Partners