|
-
Sep 11th, 2003, 05:50 PM
#1
Thread Starter
Fanatic Member
[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.
-
Sep 11th, 2003, 06:07 PM
#2
yay gay
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/
-
Sep 11th, 2003, 06:10 PM
#3
Thread Starter
Fanatic Member
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?
-
Sep 11th, 2003, 06:12 PM
#4
yay gay
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/
-
Sep 11th, 2003, 06:25 PM
#5
Thread Starter
Fanatic Member
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
-
Sep 11th, 2003, 06:26 PM
#6
yay gay
but why put them in mdi and not directly in the form?!
\m/  \m/
-
Sep 11th, 2003, 06:52 PM
#7
Thread Starter
Fanatic Member
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.
-
Sep 11th, 2003, 07:03 PM
#8
yay gay
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/
-
Sep 11th, 2003, 07:04 PM
#9
Sleep mode
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 .
-
Sep 11th, 2003, 07:04 PM
#10
Thread Starter
Fanatic Member
that doesn't seem like the easiest solution.
-
Sep 11th, 2003, 07:08 PM
#11
Thread Starter
Fanatic Member
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?
-
Sep 11th, 2003, 07:30 PM
#12
Sleep mode
I have VS.NET 2003 , I just created a form and set IsMdiContainer = True , FormBorderStyle = None . Do you still want a demo ?
-
Sep 11th, 2003, 07:31 PM
#13
Thread Starter
Fanatic Member
ahh, im just on VS .NET, i bet its a bug
-
Sep 11th, 2003, 07:36 PM
#14
Sleep mode
Maybe not , create new proj and try these settings again .
-
Sep 11th, 2003, 07:42 PM
#15
Thread Starter
Fanatic Member
frmMain Properties:
IsMdiContainer = True
frmSplash Properties:
FormBorderStyle = None
WindowState = Maximized
ControlBox = False
-
Sep 11th, 2003, 07:48 PM
#16
Sleep mode
Ok , but did you try new proj and gave you same result ?
-
Sep 11th, 2003, 08:03 PM
#17
Thread Starter
Fanatic Member
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)
-
Sep 11th, 2003, 08:14 PM
#18
-
Sep 11th, 2003, 08:33 PM
#19
Thread Starter
Fanatic Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|