Child form screen truncation

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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]
- (e-mail address removed)

seash said:
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
 
Hi Nicholas Paldin
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
Thank
Seas

----- 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 (o
the Height and Width properties) to a value where the controls will not b
truncated, and then show the form

Hope this helps


--
- Nicholas Paldino [.NET/C# MVP
- (e-mail address removed)

seash said:
H
my application is an MDI application , when i call a child form like thi
objchild.MdiParent = this
objchild.Show()
couple of textboxs and buttons along with a tab contro
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top