Re: MDI Forms

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I read your posts back and forth from Garry and you and I fully understand where Garry is coming from. But, my problem is what you helped me fix. The user can still "RESTORE" the child window and see other child windows behind them, they can resize them, but the kind of app I'm making they will not have a use for seeing multiple windows. If they want to see which child windows they have open, they will have to click on the "Window" menu item and see the open windows.

Thank you again for helping me with that problem. It worked GREAT!!!

Tony K.

"Miro" <mironagy@xxxxxxxxxx> wrote in message news:uTQ9mLEJHHA.3264@xxxxxxxxxxxxxxxxxxxxxxx
A soon as I seen your question, I realized you had the same nightmare I ran into.

I am slowely teaching myself VB.net and I - for the life of me, couldnt figure out what I had done wrong. Seems it wasnt me at all !!! :-)

I am not sure if the same thing happens on non "MDI" apps, but I dont risk it anymore. I keep all my apps as "Normal", and
set it during code at runtime.

Glad to be of help.
Cheers

Miro


"Tony K" <king-tony2@xxxxxxxxxxxxxxxxx> wrote in message news:8E7135F6-6DAC-49B0-A3AF-25664C6A5726@xxxxxxxxxxxxxxxx
You are the MAN!! Thank you Miro. I have struggled with this on other MDI apps and went about it a much LONGER way. Thanks again.

Tony

"Miro" <mironagy@xxxxxxxxxx> wrote in message news:uB0tfv9IHHA.4384@xxxxxxxxxxxxxxxxxxxxxxx
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.


Lemmi know if this fixed you as well. Im sure others will run into this too.

Miro


"Tony K" <king-tony2@xxxxxxxxxxxxxxxxx> wrote in message news:54AB4FAF-F465-4E1D-ACCA-497CF03F9623@xxxxxxxxxxxxxxxx
How do you maximize a child form when you show the child form. My resolution on my screen is 1440 x 900. My parent form maximizes just fine, but when I show a child form it doesn't maximize. It doesn't separate itself from the child form, meaning you can't move it around like if the form was "restored" but it doesn't take up all the space available.

I do not have the maximum or minimum size set in the properties, but I do have the WindowState set to Maximized. I also have the size property set to 800 x 600 and that is the size that the form starts up as.

Any answers would be greatly appreciated.

Thanks, Tony






.



Relevant Pages

  • Re: Group Membership Problem
    ... >> Domain A is The parent Windows 2000 ... >> Domain C is the Child Windows 2003 mixed ... > DCs must be first upgraded to Win2003 prior to upgrading any child domains. ... > /forestprep and adprep /domainprep have been run on the forest root domain. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Specifying the parent when adding treeview nodes?
    ... //At this point ListOfWindows contains all the windows associated ... The problem is when looping to add the child windows, the parent can ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: WS_EX_LAYERED/UpdateLayeredWindow with owned WS_CHILD windows
    ... child windows do NOT recieve their own WM_PAINT messages. ... I understand that a ULW window does not receive WM_PAINT messages. ... Whether an owner ULW window causes the WM_PAINT message to be ...
    (microsoft.public.win32.programmer.gdi)
  • Re: Noob question regarding c# and classic windows apps
    ... You have child windows called controls and you have top-level ... > It seems to be that c# should be used for either form based windows apps,> console apps, and web apps. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Hooks
    ... Now I have set the hook I am getting those messages. ... Gary Chanson (Windows SDK MVP) ... Is that thread id is possible for these concept (all child windows ...
    (microsoft.public.win32.programmer.gdi)