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

Why is the control larger when on a form?

P: n/a
I made a usercontrol (a couple of years ago). Actually it is a calculator
with lots of little buttons.

I have the control on a form.

When I view the form in the IDE (or when running) the control is larger then
when I view the control itself in its project in the IDE.
Actually the control is larger and everything in it is proportionally
scaled. For example, the buttons are larger. So the control looks the same
but is bigger.

The control is docked to the form but buttons on the control are simply
anchored top left so they should not stretch.

Text that fits in a button when the control is displayed on a form does not
fit when the control is viewed in it's project. The control, in its project
must have displayed larger at one time since I would not have left it with
the button text not fitting.

Have any idea what's going on?


Thanks

Apr 8 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Well, a change in text size might be the result of inheritance in the
WinForms hierarchy. Many properties of controls are determined by the
container in which you place them. I can't remember if font is one of
these but it may be.

Some settings, such as text size, are also determined by the user
login. I assume that you're designing and viewing on the same screen,
so the PPI of the screen probably isn't responsible.

Apr 9 '06 #2

P: n/a
can you send screen shots? I believe its got something to do with way you
have docked the entire usercontrol or anchored it in the Form,

VJ

" Netter" <ne**********@a-znet.com> wrote in message
news:ul**************@TK2MSFTNGP04.phx.gbl...
I made a usercontrol (a couple of years ago). Actually it is a calculator
with lots of little buttons.

I have the control on a form.

When I view the form in the IDE (or when running) the control is larger
then when I view the control itself in its project in the IDE.
Actually the control is larger and everything in it is proportionally
scaled. For example, the buttons are larger. So the control looks the same
but is bigger.

The control is docked to the form but buttons on the control are simply
anchored top left so they should not stretch.

Text that fits in a button when the control is displayed on a form does
not fit when the control is viewed in it's project. The control, in its
project must have displayed larger at one time since I would not have left
it with the button text not fitting.

Have any idea what's going on?


Thanks

Apr 9 '06 #3

P: n/a
Thanks for the replies. It went away by itself.

When I had the problem the text probably did not change. Everything else
shrunk when viewed in the control's designer, from when I first made it and
from how it looked when I viewed the form in its designer.

It was like that for a few days and then became full size without me
knowingly fixing it.

Thanks

" Netter" <ne**********@a-znet.com> wrote in message
news:ul**************@TK2MSFTNGP04.phx.gbl...
I made a usercontrol (a couple of years ago). Actually it is a calculator
with lots of little buttons.

I have the control on a form.

When I view the form in the IDE (or when running) the control is larger
then when I view the control itself in its project in the IDE.
Actually the control is larger and everything in it is proportionally
scaled. For example, the buttons are larger. So the control looks the same
but is bigger.

The control is docked to the form but buttons on the control are simply
anchored top left so they should not stretch.

Text that fits in a button when the control is displayed on a form does
not fit when the control is viewed in it's project. The control, in its
project must have displayed larger at one time since I would not have left
it with the button text not fitting.

Have any idea what's going on?


Thanks

Apr 10 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.