Chapter 15. Multiple Document Interface (MDI) Applications

function OpenWin(url, w, h) { if(!w) w = 400; if(!h) h = 300; window.open(url, "_new", "width=" + w + ",height=" + h + ",menubar=no,toobar=no,scrollbars=yes", true); } function Print() { window.focus(); if(window.print) { window.print(); window.setTimeout('window.close();',5000); } }
Team-Fly    

Special Edition Using Microsoft® Visual Basic® .NET
By Brian Siler, Jeff Spotts
Table of Contents
Part III:  Building Windows Applications


In this chapter

Overview of MDI Applications

Creating the Parent Form for the Sample Application

Creating the Child Form Template

Displaying a New Child Form

Opening an Existing Document

Child Window Management

Saving Files

Adding a Print Function

Summarizing the Code

From Here…

As you begin to write more advanced Visual Basic applications, at some point you will probably want to develop applications that contain a number of forms that need to be organized in a structured manner. If so, you may want to think about creating a Multiple Document Interface (MDI) application. The MDI standard allows your programs to work with multiple forms contained within a parent form. Using the MDI makes your interface cleaner than one that has independent forms scattered about the screen.

The MDI standard can enhance your programs in two ways. First, you can have one container form that acts as the background for your overall application. If a user moves the container form, the child forms contained inside move as well, which helps keep your application's interface organized and self-contained. Second, and perhaps even more powerful, your users can work on multiple documents at one time. MDI applications allow the use of multiple instances of the same form, which can add a great deal of power and flexibility to your programs.


    Team-Fly    
    Top
     



    Special Edition Using Visual Basic. NET
    Special Edition Using Visual Basic.NET
    ISBN: 078972572X
    EAN: 2147483647
    Year: 2001
    Pages: 198

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net