Search KB Filter article types
Form Concepts - UserControls instead of child forms - Simulating IFRAMEs
Categories: UserControls, UserControls Switching
Tags: Developers, Navigation, 1. Beginner, 2. Intermediate, Navigation, Pre v6.3, v6.3, v6.4 and Later, 3. Advanced
Revision: 1
Posted: 20/Sep/2009
Updated: 21/July/2010
Status: Publish
Types: Article

Overview

This article is a part of Form Concepts series of articles.

General

UserControls are containers, like forms, and behave very similar to forms. They have component tray, where you can drop your DataSets and BindingSources and in the Visual WebGui designer, they are allmost identidal as forms to design. In fact they are so similar, that you can simply edit the code files and change the inheritance from Form to UserControl to make that Form a UserControl and vice versa.

Many users prefer UserControls to MDI implementation for their applications. The trick is to design your UserControl just like you would do with any form, and then dynamically create an instance if that UserControl and place it within a Panel or TabPage and even inside other UserControls.

UserControls are also very handy to simulate IFRAMEs in a Visual WebGui application, for those coming from the Web programming world. See the codesample on simulating IFRAMEs.

RererencesCode samples

About the author

Related Articles

UserControls  
Title Update Author
This video demonstrates how to work with user controls.
Tags: Developers, Drag & Drop, 1. Beginner, 2. Intermediate, 3. Advanced, Customization, Layouting, Pre v6.3, v6.3, v6.4 and Later
01/Jan/2009    2009/01/01
This sample application was created on VWG v6.3.x. The creator of this application suggests that VWG v6.4 would give much greater flexibility.
Tags: Architects, Developers, Events, Resource Handlers, VB.NET, 2. Intermediate, 3. Advanced, Customization, Layouting, Pre v6.3, v6.3
07/Jan/2009    2009/01/07
Tags: Architects, Developers, Data Binding, 2. Intermediate, 3. Advanced, Data Binding, Pre v6.3, v6.3, v6.4 and Later
02/Jan/2009    2009/01/02
This sample code demonstrates working with user controls to simulate frames
Tags: Developers, Navigation, 1. Beginner, 2. Intermediate, Navigation, Pre v6.3, v6.3, v6.4 and Later, 3. Advanced
12/Jan/2007    2007/01/12
Tags: Developers, Navigation, 1. Beginner, 2. Intermediate, Navigation, Pre v6.3, v6.3, v6.4 and Later, 3. Advanced
08/Aug/2010    2010/08/08
Tags: Developers, Navigation, 1. Beginner, 2. Intermediate, Navigation, Pre v6.3, v6.3, v6.4 and Later, 3. Advanced
23/July/2010    2010/07/23
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS