By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,679 Members | 2,602 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,679 IT Pros & Developers. It's quick & easy.

Child form screen truncation

P: n/a
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
Nov 16 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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]
- mv*@spam.guard.caspershouse.com

"seash" <an*******@discussions.microsoft.com> wrote in message
news:0F**********************************@microsof t.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

Nov 16 '05 #2

P: n/a
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
- mv*@spam.guard.caspershouse.co

"seash" <an*******@discussions.microsoft.com> wrote in messag
news:0F**********************************@microsof t.com..
H
my application is an MDI application , when i call a child form like thi
objchild = new frm() objchild.MdiParent = this
objchild.Show()
the child screen in the container gets a truncation in its area, i go

couple of textboxs and buttons along with a tab contro on the child form
----need hel

-----seas


Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.