Form
From Visual WebGui Wiki
| This article will have a few sections added to it soon, based on the following article type skeleton: NewControlTemplate |
| This article missing it's contents and needs writing. Please help contributing to this wiki and add contents. |
Contents |
Overview
The Form control is functionally equivialent to the Windows Forms Form control.
Availability
The Form is not listed as one of the Out of the Box standard controls, but still it is one of the building blocks of any Visual WebGui application and should be regarded as one of those and it is free and available in all Visual WebGui versions.
Samples of use
Tips and Tricks
- Preventing Form from closing
- Preventing Browser mainform from closing
- Forcing a Form.Load event to fire when coming back to same form
- Changing browser tab title
- Forcing a new context to be created for second instance of MainForm created in the same thread (like in Firefox) - using VWGInstance
- Overridden OnClosing method will only be invoked if it is critical - make critical by registering an event handler for the Closing event.
See also
Rererences
Code samples
Forum discussons
- Setting Form.CustomStyle = "Blend" can mess up your mainform
- Showing a Dialog form without Minimize/Maximize buttons
- Implementing Master Page style approach with Forms and UserControls
- Programmatically resize a form to fit a UserControl
- How to do a fading background in a Dialog form
- How to use localized language resources in your forms
- Popup a window without a border
- Lightbox Manager
- Using SetChildIndex to change docking order of controls
- Having Forms use localized resource strings - dialog forms for instance
- Retviewing client desktop resolution
- Implementing Facebook-style lightbox in Visual WebGui code
- Using FormStyle=Dialog and FormStyle=Application gives you two different color schemes
- Intercepting Keydown on a form to filter special keys or prevent their event bubbling (code sample here)
Other references
