Search KB Filter article types
UserControl library with embedded images sample
Categories: Graphics & Pictures, Dynamic Resources (Gateways)
Tags: Architects, Developers, Gateway, Resource Handlers, 1. Beginner, 2. Intermediate, Pre v6.3, v6.3, v6.4 and Later, 3. Advanced
Revision: 1
Posted: 12/Jan/2007
Updated: 12/Jan/2007
Status: Publish
Types: Code

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.


About the author

Related Articles

Graphics & Pictures  
Title Update Author
Tags: Architects, Developers, Gateway, Resource Handlers, 1. Beginner, 2. Intermediate, Pre v6.3, v6.3, v6.4 and Later, 3. Advanced
02/Jan/2009    2009/01/02
This code snippet demonstrates creation of a custom control with new client side events which are handled on the client by the custom control's client's script.
Tags: Developers, Events, Gateway, JavaScript, 1. Beginner, 2. Intermediate, Customization, Pre v6.3, v6.3, 3. Advanced, v6.4 and Later
28/Dec/2010    2010/12/28
This article demonstrates the use of an active Gauge in a Visual WebGui application.
Tags: Developers, 1. Beginner, 2. Intermediate, 3. Advanced, v6.3, v6.4 and Later
12/Jan/2009    2009/01/12
Tags: Developers, Gateway, 1. Beginner, 2. Intermediate, 3. Advanced, v6.3, v6.4 and Later
17/Nov/2010    2010/11/17
Tags: Architects, Developers, Gateway, Resource Handlers, 1. Beginner, 2. Intermediate, 3. Advanced, Pre v6.3, v6.3, v6.4 and Later
04/Dec/2010    2010/12/04
Tags: Architects, Developers, Gateway, Resource Handlers, 1. Beginner, 2. Intermediate, 3. Advanced, Pre v6.3, v6.3, v6.4 and Later
28/Oct/2010    2010/10/28
.NET HTML5 Web, Cloud and Mobile application delivery | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2012 Visual WebGui®       Visual WebGui weblog on ASP.NET Gizmox Blog Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS