Re: Child form screen truncation

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: seash (anonymous_at_discussions.microsoft.com)
Date: 05/10/04


Date: Mon, 10 May 2004 09:06:02 -0700

Hi Nicholas Paldino
thanks for your reply.
Yes, you are right, but my problem is not this.
I have a form which is small enough to be shown on the screen but not able to view whole page.
All the controls on the page are getting resize eventhough I haven't placed any resize code.
This problem arises when i put
objchild.MdiParent = this;
if i take off the above code, then my form works asusual.
Please let me know if any have any alternative solutions for this.
Thanks
Seash
     
     ----- Nicholas Paldino [.NET/C# MVP] wrote: -----
     
     seash,
     
         I assume that the truncation is the result of the form being too small.
     Before you call the Show method on the child form, set the Size property (or
     the Height and Width properties) to a value where the controls will not be
     truncated, and then show the form.
     
         Hope this helps.
     
     
     --
                    - Nicholas Paldino [.NET/C# MVP]
                    - mvp@spam.guard.caspershouse.com
     
     "seash" <anonymous@discussions.microsoft.com> wrote in message
     news:0FB304E4-1BF3-4863-9F6A-D481FA54A58A@microsoft.com...
> Hi
> my application is an MDI application , when i call a child form like this
>> objchild = new frm();
> objchild.MdiParent = this;
> objchild.Show();
>> the child screen in the container gets a truncation in its area, i got
     couple of textboxs and buttons along with a tab control
> on the child form.
>> ----need help
> -----seash
     
     
     


Quantcast