CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2005
    Posts
    3

    help me with mdi

    hi guys, started recently with visual basic.net. And i'm enjoying it. But i have a problem with mdi. I cant seem to set them up.

    i have set the ismdicontainer property parent form to true.
    And my code looks like this:

    Dim form3 As New Form3
    form3.mdiparent = me
    form3.show

    But it doesn't seem to work..

    Can anybody help me? What am i doing wrong?
    Did I put this code in the wrong form?

  2. #2
    Join Date
    Mar 2005
    Posts
    3

    Smile Re: help me with mdi

    hmmm...is it typo error?

    dim form3 as new form3
    form3.mdiparent = me
    form3.show()

    should be:
    dim frm as new form3
    frm.mdiparent = me
    frm.show()

    this should work, form3 is a new class, so u need to dim {variable} as new {class}...

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