CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: MDI

  1. #1
    Join Date
    Feb 2001
    Posts
    4

    MDI

    Hi,

    My project needs a MDI form to show multiple reports (child windows).

    For example I have three forms: frmMain, frmReport(Child) and frmMDI (Parent). There is a command, cmdReport, in frmMain:
    Private Sub cmdReport_Click
    Value=Value+1 'Value is declared in Module
    Dim frmNew As frmReport
    Set frmNew = New frmReport
    frmNew.Show
    End Sub

    In frmReport I put code as
    Private Sub Form_Load()
    Print Value
    End Sub

    Users should be able to get a new report everytime they click on cmdReport while the old reports still exist. However, what happen is that
    the report is always the old report (the new old never show up)
    Can anyone help me?




  2. #2
    Join Date
    Mar 2001
    Posts
    7

    Re: MDI

    In frmReport put the Show before the Print Value, so you can really see that the Value is updated.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured