Why is the control larger when on a form?

N

Netter

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
 
B

Bruce Wood

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.
 
V

Vijay

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
 
N

Netter

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
 

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

Top