473,468 Members | 1,713 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Window or tab size problem

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
Feb 12 '07 #1
2 1463
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.

====
"Samuel" <sa************@ntlworld.comwrote in message
news:Ow**************@TK2MSFTNGP02.phx.gbl...
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

Feb 12 '07 #2
Thank you,

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

Samuel
"Miro" <mi******@golden.netwrote in message
news:ea**************@TK2MSFTNGP06.phx.gbl...
>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.

====
"Samuel" <sa************@ntlworld.comwrote in message
news:Ow**************@TK2MSFTNGP02.phx.gbl...
>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


Feb 20 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Charles Packer | last post by:
From one of the online Javascript tutorials, I learned how to open a new window and set its size. I'm building a page that has several small photographs, and I want to let the viewer examine...
2
by: Randell D. | last post by:
HELP! Its taken me ages - I'm a newbie and I've compiled bits of code that I've read in this newsgroup over time to create one of my most intricate functions to date... Basically, the script...
4
by: Phillip Parr | last post by:
Hello, I have a nice system where someone clicks on a picture to show the full version. This pops up in a window.open box. It works great, the only problem is that if the user clicks a second...
8
by: alanstew | last post by:
With the body tag calling out 'window onload', a function with a 'window.open' fails at the 'window.open' line. If I cut out the body tag, the function executes as normal. At first I thought it...
6
by: David Hayes | last post by:
juglesh <juglesh@nospamRadioKDUG.com> wrote in "Re: how to maximize the browser window that fits the monitor size?" (Saturday, January 01, 2005 3:12 AM): > > >I want to maximize the browser...
2
by: Peter | last post by:
I would like to automatically resize a window to its content. I was thinking of using an outer table to detect the size of my content, then use window.resizeTo( ). The problem is I'm not sure...
14
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a...
1
by: DaveG | last post by:
Hi All I am having a small problem with window.open() obviously something I am or am not doing. This is being fired from a subwindow. Everytime I use just the location.href = "URL" I got a...
9
by: tshad | last post by:
This was posted before but the message got messed up (all NLs were stripped out for some reason). I have 2 labels that hold the name of different images on my .aspx page. <asp:Label ID="Logo"...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.