We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,849 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

VB.net hide MDI Child title bar

hey,
i am creating one project where i am using MDI system,
so when i am opoening MDICHild in MDI Parent it adds new title bar for MDI child.

I tried formborderstyle, have hide controlbox, max - min button but it dident worked ?

so can anyone have any solution ???

Thank You....

4
Contributors
12
Replies
5 Days
Discussion Span
3 Months Ago
Last Updated
16
Views
Question
Answered
sanket044
Light Poster
43 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

I must be a wizard!

I set the form border style to none and then set the form to maximize on form load.

Works like a charm for me.

Do you have any special form drawing code?

Begginnerdev
Practically a Posting Shark
861 posts since Apr 2010
Reputation Points: 184
Solved Threads: 141
Skill Endorsements: 8

Ya i have one function which dynamically creates form design. So when i use opacity nd maximize in load event it first executes that function nd then meximizes somethime it didnt maximize..
I mean its working like 50 50.

sanket044
Light Poster
43 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

Have you some how set the MaximumSize property to something other than Size.Empty?

TnTinMN
Practically a Master Poster
640 posts since Jun 2012
Reputation Points: 418
Solved Threads: 148
Skill Endorsements: 13

I just had another thought, try moving your maximize code from the Load handler to the Shown handler.

TnTinMN
Practically a Master Poster
640 posts since Jun 2012
Reputation Points: 418
Solved Threads: 148
Skill Endorsements: 13

Here's another thought a dialog form without a control box and no text has no title bar. enable autosize, autosizemode growandshrink, windowstate maximized, and size equal to the MDIParent.size, and the form will show maximized inside the parent, with no title bar, and will autosize with the parent. Since you want to create it dynamically, designing it in the VS designer then copying the code from the designer file, should give you everything you need.

tinstaafl
Nearly a Posting Virtuoso
1,305 posts since Jun 2010
Reputation Points: 341
Solved Threads: 226
Skill Endorsements: 14

i used following code

with me
    .windowState = maximized
    .formBorderStyle = nonw
end with
dis()


function dis()
    msgbox("hello")
    return vbNull
end function

But it executes first function then it is getting maximized...
What to do? My function depends on size, i want to maximized first then function call.

sanket044
Light Poster
43 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

Have you tried setting the form properties in designer mode instead?

Just for S's & G's?

Begginnerdev
Practically a Posting Shark
861 posts since Apr 2010
Reputation Points: 184
Solved Threads: 141
Skill Endorsements: 8

I am beginning to suspect that the issue is the MDI taskbar that shows up when you maximize a child form. I have attached a simple project for you to play with.

MDI1

Attachments MDI_Borders.zip (15.29KB)
TnTinMN
Practically a Master Poster
640 posts since Jun 2012
Reputation Points: 418
Solved Threads: 148
Skill Endorsements: 13

But it executes first function then it is getting maximized...

if your code is in the load handler for the MDIParent the form won't show until the handler is finished. try adding Me.Show before you call the sub.

tinstaafl
Nearly a Posting Virtuoso
1,305 posts since Jun 2010
Reputation Points: 341
Solved Threads: 226
Skill Endorsements: 14

What is S's & G's? ?? @bigginerdev

sanket044
Light Poster
43 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

I prefer to keep the forum G rated.

You will have to use your imagination. :)

For S***'s and giggles.

Begginnerdev
Practically a Posting Shark
861 posts since Apr 2010
Reputation Points: 184
Solved Threads: 141
Skill Endorsements: 8
Question Answered as of 3 Months Ago by Begginnerdev, TnTinMN and tinstaafl

Yes i got it... Thank you all guyes..
I just moved code to me.shown from me.load...

sanket044
Light Poster
43 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0969 seconds using 2.71MB