Window or tab size problem

S

Samuel

The application is MDI, as soon as the application loads I create a new
child window (maximized), within the child window there is a tab control
almost the size of the child window

The problem is that when the application first loads the top of the tab
control is hidden and it seems as though the header part of the tab control
is not taken into account as far as location or sizing the control (the
control is anchored on all sides). It is only located and sized properly
once the windows is resized (either by sizing the window or by maximizing
minimizing etc.)

Any explanation or info about a related BUG

Thank you,
Samuel
 
M

Miro

I think i have run into this before samuel.

I have pasted my answer below ( newsgroup - search for "From Miro" and
subject is RE: MDI Forms"

anyway here it is with the solution that worked for someone else as well.

Miro


=====
This happend to me....
Are you using the Property to maximize? or doing it by code?

If you notice, it is actually showing you the form the exact size it is in
development mode.

Try to show the form maximized thru code

fMain = New frmMain
fMain.WindowState = FormWindowState.Maximized
fMain.Show()
and leave the windowstate "Normal" on the property of the form.

Compile...
it should work,

Now if you get rid of the code, and change your property back to show
"maximized" it should work.

After I ran into this...i always show all my forms maximized thru code (
like above ) and leave all my forms "Normal", and it has never happend
since.

====
 
S

Samuel

Thank you,

I needed to apply the same method to the frame window and only then it
worked

Samuel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top