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

Thread: Mdi Forms?

  1. #1
    Join Date
    Aug 2001
    Location
    Minneapolis, MN, USA
    Posts
    150

    Lightbulb Mdi Forms?

    DOES ANYONE KNOW OF A GOOD MDI FORMS EXAMPLE IN .NET? OR CAN YOU SEND ME SOME TIPS? I'VE NEVER USED MDI FORMS IN VB6 OR PREVIOUS VERSIONS...SO I'M NEW WITH THIS.

    THANKS

  2. #2
    Join Date
    Jul 2002
    Posts
    1
    Hi,
    You have to set the form that you select as the MDI and change its IsMDIContatiner property to true.

    This is an example of calling a form: Pretty new to it myself in .Net so just stumbling along.


    If m_frmUsers Is Nothing Then
    m_frmUsers = New frmUsers()
    End If

    m_frmUsers.MdiParent = Me
    m_frmUsers.Show()
    m_frmUsers.BringToFront()

    I was also given good advice of someone to dim my form withevents and add this code to the closing event.

    Private Sub m_frmUsers_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles m_frmUsers.Closing
    m_frmUsers = Nothing
    End Sub

    Hope this helps.

  3. #3
    Join Date
    Aug 2001
    Location
    Minneapolis, MN, USA
    Posts
    150
    definetly thanks..

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