473,765 Members | 2,172 Online
Bytes | Software Development & Data Engineering Community
+ 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 1477
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.WindowSta te = 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.comwr ote in message
news:Ow******** ******@TK2MSFTN GP02.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******@golde n.netwrote in message
news:ea******** ******@TK2MSFTN GP06.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.WindowSta te = 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.comwr ote in message
news:Ow******** ******@TK2MSFTN GP02.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
1863
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 either a full size image or an image with supporting detail. It's the same idea used on lots of Web sites that show thumbnails where you click on one and the full-size image is displayed in a new window. However, I have different-sized images that will...
2
5368
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 gets called with a single arguement (full path to an image). The image is supposed to be downloaded to the cache, and when complete, a new window opened that is slightly larger insize then the images dimensions... The new window will contain the...
4
651
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 picture before closing the first then the new picture loads into the original popup box which is often a different size. How can i make them open in their own popup windows? Thanks
8
2464
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 was the entire function failing, but I tested with alerts and found that it was only the 'window.open' that fails to execute. The function is being called by a link, and I suspected some problem with the body alink/vlink but after cutting that out...
6
5645
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 window when I open a new window. > > function expand() { > window.moveTo(0,0); > window.resizeTo(screen.availWidth, screen.availHeight); > }
2
3219
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 how I can determine the size of what I think is referred to as the 'chrome' - the window borders, toolbars, etc. Is there a way to determine the height and width of the chrome so that I can supply the correct parameters to the resizeTo method?
14
11095
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 window.open function? I would prefer not to create a separate HTML page. So far all I have is the basic var cwin = window.open('images/KJV-THANKS.gif', 'Thanks', 'width=243,height=420,'); cwin.focus();
1
1848
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 new window the same size as the subwindow it was launched from. The code below works in Mozilla by IE still opens a window the same
9
2594
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" runat="server"/> <asp:Label ID="CompanyPicture" runat="server"/> I have 2 links that open the windows to preview these images. The previewed images are done on separate html pages that do nothing but display the
0
9568
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9832
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8831
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7375
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5275
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5419
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3924
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 we have to send another system
2
3531
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.