473,511 Members | 15,156 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MDI child maximizing doesn't work correctly

(using VS.net 2005 - never used DotNet WinForms til now - previously only
used VB6)

I have set my mdi child form to a window state of maximized.

However, the first file I open is not maximized and I can not get to the
drag bar.

But then, the second file I open (using the same function) IS maximized and
it maximizes the first, previously opened mdiChild also...

What's the trick here, that I assume I'm missing?

Nov 23 '05 #1
7 11654
"Elmo Watson" <sp*****@nospam.yahoo.com> schrieb:
I have set my mdi child form to a window state of maximized.

However, the first file I open is not maximized and I can not get to the
drag bar.

But then, the second file I open (using the same function) IS maximized
and it maximizes the first, previously opened mdiChild also...


How are you opening the child forms?

It's by design that maximizing one of the child forms will maximize all
other MDI children too.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 23 '05 #2
I have a method in a Module, in order to simplify things
objDoc=New frmEdit
objDoc.MdiParent=frmMain (keep in mind, this is in a module)
objDoc.Text="Untitled"
objDoc.Show

I'm totally open to any new knowledge on how to do this - I'm very new at
DotNet WindowsForms - I was a VB6 guy for years and now, I'm starting with
v2.0 of DotNet

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
"Elmo Watson" <sp*****@nospam.yahoo.com> schrieb:
I have set my mdi child form to a window state of maximized.

However, the first file I open is not maximized and I can not get to the
drag bar.

But then, the second file I open (using the same function) IS maximized
and it maximizes the first, previously opened mdiChild also...


How are you opening the child forms?

It's by design that maximizing one of the child forms will maximize all
other MDI children too.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 23 '05 #3
"Elmo Watson" <sp**********@NOSpam.yahoo.com> schrieb:
I have a method in a Module, in order to simplify things
objDoc=New frmEdit
objDoc.MdiParent=frmMain (keep in mind, this is in a module)
objDoc.Text="Untitled"
objDoc.Show

I'm totally open to any new knowledge on how to do this - I'm very new at
DotNet WindowsForms - I was a VB6 guy for years and now, I'm starting with
v2.0 of DotNet


Are you sure you set the MDI child's 'WindowState' to 'Maximized'?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 23 '05 #4
Absolutely - I've checked it several times.
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
"Elmo Watson" <sp**********@NOSpam.yahoo.com> schrieb:
I have a method in a Module, in order to simplify things
objDoc=New frmEdit
objDoc.MdiParent=frmMain (keep in mind, this is in a module)
objDoc.Text="Untitled"
objDoc.Show

I'm totally open to any new knowledge on how to do this - I'm very new at
DotNet WindowsForms - I was a VB6 guy for years and now, I'm starting
with v2.0 of DotNet


Are you sure you set the MDI child's 'WindowState' to 'Maximized'?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 23 '05 #5
Anyone have a fix for this?
"Elmo Watson" <sp**********@NOSpam.yahoo.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Absolutely - I've checked it several times.
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
"Elmo Watson" <sp**********@NOSpam.yahoo.com> schrieb:
I have a method in a Module, in order to simplify things
objDoc=New frmEdit
objDoc.MdiParent=frmMain (keep in mind, this is in a module)
objDoc.Text="Untitled"
objDoc.Show

I'm totally open to any new knowledge on how to do this - I'm very new
at DotNet WindowsForms - I was a VB6 guy for years and now, I'm starting
with v2.0 of DotNet


Are you sure you set the MDI child's 'WindowState' to 'Maximized'?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>


Nov 23 '05 #6
I didn't have this problem with the VS 2005 beta, including a project that
was started in beta and has now been updated to the final release. But in new
projects started in the release version I have this problem.

The closest I have come to finding a fix is to set window state in the load
event of the child form.

Geoff

Jan 21 '06 #7
Glad to hear I'm not the only one who has this problem...
I stumbled on the same "fix" as you did.

"geoffteb" <ge******@discussions.microsoft.com> wrote in message
news:15**********************************@microsof t.com...
I didn't have this problem with the VS 2005 beta, including a project that
was started in beta and has now been updated to the final release. But in
new
projects started in the release version I have this problem.

The closest I have come to finding a fix is to set window state in the
load
event of the child form.

Geoff

Jan 24 '06 #8

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

Similar topics

0
1470
by: TAZ | last post by:
Here http://jacek.jackowski.net.pl/kontakt.php is a css menu and also a form below, when the menu expands it hides part fo forms inputs. It'll be allright but when you move cursor above the form...
11
1836
by: Bore Biko | last post by:
Dear, I have function that transform time from secconds to string formated as dd:hh:mm:ss (days:hours:minutes:seconds), but it doesent work correctly... Here s code compiled with gcc it goes...
6
13251
by: A.M-SG | last post by:
Hi, I have an aspx page at the web server that provides PDF documents for smart client applications. Here is the code in aspx page that defines content type: Response.ContentType =...
5
2544
by: Henke | last post by:
Hi! I add some web user controls dynamicly with: myPanel.Controls.Add(Page.LoadControl("MyDynamiclyAddedPage.ascx")); the style of the controls on the user control is set from a css-class, by...
2
1965
by: PleegWat | last post by:
Hi, I'm using this function: function die_quietly( $text='', $title='', $file='', $line='', $sql='' ) { global $wowdb, $roster_conf, $wordings, $roster_menu; // die_quitely died quietly...
16
13342
by: Dutchman | last post by:
I want to safe a backup file of Norton Ghost 10.0 to a DVD but after making the image the dvd stops working. First i changed the entire systeem by going back to an backup of 9 days. That didn't...
3
1947
just a feeling
by: just a feeling | last post by:
Hi, Though my problem seems simple, I didn't find the sol. a:link doesn't look as it should be in my browser (IE6) i.e the link is displayed in the text's default color (I guess it's purple)...
1
1646
by: dolittle | last post by:
Hi, I`m opening a popup window and then later want to set the focus to it. My code: newWin = window.open('chat.html'); and when I want to set the focus I use: newWin.focus(); It always...
20
3750
by: Marren02 | last post by:
Hi, Whenever I try and find an age function I find that it doesn't work the way I want it to... Here's what I want to do: I want the age function to first ask the user a question ("What is your date...
0
7251
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,...
0
7430
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7089
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7517
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
5673
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,...
0
4743
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...
0
3217
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
790
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
451
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.