From Here

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
Chapter 15.  Multiple Document Interface (MDI) Applications


From Here…

The sample application developed in this chapter introduces the concepts of creating and managing MDI applications. This is a simple application; you may want to practice your skills by incorporating some of the following suggested enhancements:

  • Assign a unique Text property to each new instance of the child form. As it stands, you may have many child windows open whose captions say Untitled. A more reasonable approach may be to assign consecutively numbered captions (Untitled1, Untitled2, and so on).

  • Show the user a PrintDialog control before printing the document, giving her the option of setting printer options before the actual printing takes place.

  • When the user issues the File, Open menu command to open an existing document, have the blank Untitled document disappear. The user may not want a blank document to remain open if she opens an existing file.


    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