Search
 Search
GET THE HOTEST NEWS ABOUT VISUAL WEBGUI.
CREATE LINE OF BUSINESS SILVERLIGHT APPLICATIONS IN NO TIME.
EVERY THING YOU NEED TO START DEVELOPING WITH VISUAL WEBGUI.
SEE VISUAL WEBGUI SHOW CASES FROM AROUND THE WORLD.
ALL THE RESOURCES YOU NEED TO START BUILDING VISUAL WEBGUI APPLICATIONS TODAY.
SHARE AND FIND VISUAL WEBGUI RESOURCES.
TALK WITH OTHER VISUAL WEBGUI DEVELOPERS.
 
Codes

Current Codes | Categories | Search | Syndication

UserControl library with embedded images sample  

Published on:  Wednesday, December 26, 2007
By:  itzik.spitzen
User Rating:  
Categories:   Controls, Library, C#

Users have accessed this code article 1317 times.

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>




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.

Comments
Currently, there are no comments. Be the first to post one!
You must be logged in to post a comment. You can login here
Copyright © 2005-2008 Visual WebGui®   Terms Of Use  Privacy Statement
Visual WebGui is copyright 2005-2008 by Gizmox