Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have MDI form. parent form has menu and toolbar and and form header under the toolbar. While the form load, The child form right under the form header( i tried to use frame and label to create the form header, I also tried to use picture frame).

 

I put this in the parent fom load event. But the The child form will show client area which have over lap with my form header.

 

Dim newTransportRecord As New frmNewTransportRecord()

newTransportRecord.MdiParent = Me

newTransportRecord.WindowState = FormWindowState.Maximized

 

newTransportRecord.Show()

newTransportRecord.Height = Me.ClientSize.Height

newTransportRecord.Width = Me.ClientSize.Width

 

I also tried to do the calculation to set Me.ActiveMdiChild.Top = Me.GroupBox1.Top + 120 ( the size of the groupbox is 120). It did not work , too.

 

Thanks.

Posted

I'm sorry but you have to express yourself a little better... I didn't understood your scenario nor what's your question...

 

:D I'll be waiting...

Software bugs are impossible to detect by anybody except the end user.
  • *Experts*
Posted

I'm not sure how setting the Width and Height of newTransportRecord will have any effect if it's a maximized child window?

 

I think your question is how to show newTransportRecord "maximized" but also show another form (form header?) docked to the top of the MDI form? If form "form header" is a docked window (no built-in support for this in .NET that I know of, though many 3rd party tools do this), then maximizing the new form would be fine. If your "form header" form is just a child window then you can't maximize your newTransportRecord form. You'd have to try and resize it exactly the size needed using the MDI's ClientSize property along with the size of the "form header". I'd look into getting "form header" docked first, that should take care of your problem. As a starting point, search for dockable windows in google and see if there are some free dockable window controls (classes) that you can use. If not, I'm sure you could find some cheap ones (and expensive ones depending on your needs) for sale.

 

-Ner

"I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...