Search KB Filter article types
Form Concepts - MainForm
Categories: Application Entry Points
Tags: Architects, Developers, C#, VB.NET, 1. Beginner, 2. Intermediate, 3. Advanced, Integration, Pre v6.3, v6.3, v6.4 and Later
Revision: 1
Posted: 20/Sep/2009
Updated: 24/May/2010
Status: Publish
Types: Article

Overview

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

What makes a Form a MainForm

When we talk about that a form is the "MainForm", we usually mean the form that gets started when we start our application in debug mode within Visual Studio. Technically speaking, that is true, but that also means something else. The MainForm is actually the form that currently has "the context" or is the current main application form at any point in time.

There are two ways to make a form our MainForm. One is directing our browser directly to the form, like in http://localhost/Form1.wgx (which makes Form1 our current MainForm). This is what we do when we start our application within Visual Studio. The second method is to perform a Context.Transfer to another form, which makes that new form our current MainForm.

To enable any particular form as one of our application entry points (navigating to it directly via a browser), we need to register that form within web.config. To enable transfering a context to any form, we don't need any registering in web.config.

Except for the above, the MainForm is just a normal Form class.

Registering your MainForm in web.config

Registering a Form in web.config, exposes it to the outside world as one of your application entry points. In Visual WebGui Professional Studio suites, you can register the form in the Visual WebGui Integration tab named Registration, while in other versions of Visual WebGui you must manually edit your web.config to accomplish the task.

See also


ReferencesArticlesVideosForum threads

About the author

Related Articles

Application Entry Points  
Title Update Author
On various occations it may be necessary to deploy your DHTML Visual WebGui application with different extension than the standard .WGX extension. One such common scenario is when you are deploying to a web-hosting company (like GoDaddy for instance), which is not willing to add the necessary Applic...
Tags: Developers, 1. Beginner, 2. Intermediate, ASP.NET, Pre v6.3, v6.3, v6.4 and Later, 3. Advanced
12/May/2011    2011/05/12
Tags: Architects, Developers, XML, 1. Beginner, 2. Intermediate, 3. Advanced, Pre v6.3, v6.3, v6.4 and Later
24/May/2010    2010/05/24
Tags: Architects, Developers, C#, VB.NET, 1. Beginner, 2. Intermediate, 3. Advanced, Pre v6.3, v6.3, v6.4 and Later
24/May/2010    2010/05/24
Tags: Architects, Developers, 2. Intermediate, 3. Advanced, Customization, ASP.NET, Pre v6.3, v6.3, v6.4 and Later
24/May/2010    2010/05/24
.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