How To : Embedding a Form within a Form Using Drag and Drop

Page Status: Beta

Back to Concepts and HOW TOs

Contents

[edit] Description

Embedding one form inside of another form allows you to re-use a form (similar to reusing program code). For example, if you're building an application that allows users to type in their name and address information, you can create a form with the required input fields, and then embed that form in any number of parent forms with which the user interacts.

[edit] Prerequisites

Introduction to Bungee Builder
Understanding Forms
Adding a Form to a Class
Overview : Building a Bungee-powered Application

[edit] Procedure

To embed one form in another:

  1. In the Solution Detail, open the parent form (the form in which you want to embed another form) in the Design Editor.
  2. In the Solution Detail, locate the child form (the form that is to be embedded in the parent form).
  3. From the Solution Detail, drag the child form onto the parent form in the location where you want the child form to be appear. For example, if your parent form is a grid, drop the child form into the appropriate cell.

[edit] Error Handling

 

[edit] Examples

  1. Create a form containing latitude and longitude.
  2. Drag the above form into the bottom cell of the parent form (the GoogleMap control is in the top cell of the form).
     
  3. Simulating the parent form looks like this:

[edit] Next Steps

Binding a Control to an Object
Understanding Copy and Paste
Using Copy and Paste
Simulating or Testing Your Project or Application

[edit] Tags

    Copyright © 2005 - 2007 Bungee Labs. All rights reserved.