Results 1 to 19 of 19

Thread: [Resolved] MDI Child Form Restore Bar

  1. #1

    Thread Starter
    Fanatic Member cpradio's Avatar
    Join Date
    Apr 2002
    Posts
    616

    [Resolved] MDI Child Form Restore Bar

    I am having a bit of a problem and I did a few quick searches here and none of the threads seemed to be my exact problem.

    In the screenshot at http://cpradio.net/screenshot.gif there is a part circled in red. I am trying to remove that bar. The child form's FormBorderStyle is set to "None" so the Maximize, Minimize, Restore, etc should not be showing up. What am I doing wrong/over-looking?

    -Matt
    Last edited by cpradio; Sep 11th, 2003 at 09:06 PM.
    http://cpradio.net/
    Administrator @ WDForums and a Moderator @ WebXpertz City Forums

  2. #2
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    if u dont want to show that thing why using mdi? i mean..maybe you could use just a panel or something like that to be a container or not?
    \m/\m/

  3. #3

    Thread Starter
    Fanatic Member cpradio's Avatar
    Join Date
    Apr 2002
    Posts
    616
    well I am new to vb.net (not new to vb) but I have no idea what exactly a panel was so I used MDI.

    Could you explain the difference for me?
    http://cpradio.net/
    Administrator @ WDForums and a Moderator @ WebXpertz City Forums

  4. #4
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    a panel is a container control(it means you can put textboxes, buttons, etc in it).

    what are you really wanting to do? also what was the specific idea of trying to use the MDI?
    \m/\m/

  5. #5

    Thread Starter
    Fanatic Member cpradio's Avatar
    Join Date
    Apr 2002
    Posts
    616
    I am writing a very basic game. the point is to load forms into a current form (ie: MDI) so I can ensure the user cannot close the game.

    -Matt
    http://cpradio.net/
    Administrator @ WDForums and a Moderator @ WebXpertz City Forums

  6. #6
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    but why put them in mdi and not directly in the form?!
    \m/\m/

  7. #7

    Thread Starter
    Fanatic Member cpradio's Avatar
    Join Date
    Apr 2002
    Posts
    616
    it's hard to explain. I am using MDI so I can keep everything in seperate forms, thus make it easier to work with.

    unfortunately it seems its not too easy to work with, as getting a MDI form to open another MDI form is not very easy or so it seems.
    http://cpradio.net/
    Administrator @ WDForums and a Moderator @ WebXpertz City Forums

  8. #8
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    you can create forms and instead of using MDI you could just loop thru each form controls and add them to the main form, when u wanted to change the game or whatever, u'd just delete all the controls from the main form and copy the new controls from the other form u want to it
    \m/\m/

  9. #9
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Weird ! I've just created a MDI Form and set FormBorderStyle to 'None' and works fine . No buttons at the top , no title Bar too .

  10. #10

    Thread Starter
    Fanatic Member cpradio's Avatar
    Join Date
    Apr 2002
    Posts
    616
    that doesn't seem like the easiest solution.
    http://cpradio.net/
    Administrator @ WDForums and a Moderator @ WebXpertz City Forums

  11. #11

    Thread Starter
    Fanatic Member cpradio's Avatar
    Join Date
    Apr 2002
    Posts
    616
    Originally posted by Pirate
    Weird ! I've just created a MDI Form and set FormBorderStyle to 'None' and works fine . No buttons at the top , no title Bar too .
    mind sharing your property settings of your Main Form that IsMDI, and the property settings of your MDI form?
    http://cpradio.net/
    Administrator @ WDForums and a Moderator @ WebXpertz City Forums

  12. #12
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    I have VS.NET 2003 , I just created a form and set IsMdiContainer = True , FormBorderStyle = None . Do you still want a demo ?

  13. #13

    Thread Starter
    Fanatic Member cpradio's Avatar
    Join Date
    Apr 2002
    Posts
    616
    ahh, im just on VS .NET, i bet its a bug
    http://cpradio.net/
    Administrator @ WDForums and a Moderator @ WebXpertz City Forums

  14. #14
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Maybe not , create new proj and try these settings again .

  15. #15

    Thread Starter
    Fanatic Member cpradio's Avatar
    Join Date
    Apr 2002
    Posts
    616
    frmMain Properties:
    IsMdiContainer = True

    frmSplash Properties:
    FormBorderStyle = None
    WindowState = Maximized
    ControlBox = False
    http://cpradio.net/
    Administrator @ WDForums and a Moderator @ WebXpertz City Forums

  16. #16
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Ok , but did you try new proj and gave you same result ?

  17. #17

    Thread Starter
    Fanatic Member cpradio's Avatar
    Join Date
    Apr 2002
    Posts
    616
    Yes, but I solved it, using a very odd setup.

    I added:
    Code:
        Private Sub frmMain_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Resize
            Me.MaximizeBox() = True
        End Sub
    To all of my child forms and it takes care of the problem (very odd)
    http://cpradio.net/
    Administrator @ WDForums and a Moderator @ WebXpertz City Forums

  18. #18
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Still

  19. #19

    Thread Starter
    Fanatic Member cpradio's Avatar
    Join Date
    Apr 2002
    Posts
    616
    The code in my prior post, solved my problem and removed that tool bar that had the restore and minimize buttons.

    I appreciate both of your help.
    Thanks!
    -Matt
    http://cpradio.net/
    Administrator @ WDForums and a Moderator @ WebXpertz City Forums

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