473,503 Members | 9,836 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Why is the control larger when on a form?

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
3 1424
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2685
by: Bryan Capps | last post by:
I have a text box control on a form, the value of which is calculated (concatenated) from entries on a subform. Accordingly, I've set the control's locked property to true and the tab stop...
1
1880
by: 2D Rick | last post by:
I have a form that opens maximized and requires scrolling down to see all the textboxes. When you enter a textbox in the lower portion of the form the Enter event opens a large textbox with a large...
5
5764
by: Sharon | last post by:
I’m writing a Windows application. In the form I have a Panel and inside the panel I have a PictureBox control. I’m loading the PictureBox control with BMP image that has the following...
3
10985
by: RG | last post by:
For a Windows project in VB.NET 2003: I need a Calendar that’s much larger than the MonthCalendar control in the toolbox; it needs to fill the whole screen (at least approximately ). VB...
2
7555
by: Paul E Collins | last post by:
I'm writing an application whose main window consists of a particular UserControl that I have placed inside a docked Panel so that it will fill the whole window. The panel also has the AutoScroll...
7
19814
by: Jayyde | last post by:
Can anyone point me to a good guide for how to do this or give me some pointers? What I'm basically trying to do is use the Web Browser as a picture box that has a web source for the image, but it...
17
7364
by: Kbalz | last post by:
I'm developing a Wizard type program, and I'm flipping between steps by using a TabControl.. buttons on each tabPage move to the next or previous tabPage. When I press CTRL+Tab however, the...
4
5499
by: ifitzgerald | last post by:
Hi, I am modifying a rather large and complex MFC application (written by someone else) written in Visual C++ 6.0 with service pack 6. I need to add serial communication functionality to the...
0
1362
by: SayamiSuchi | last post by:
hi I have taken one image control("image1") in the form("frmForm1.aspx").Now i want to one image ("mypic.jpeg") whose size is larger than the image control i.e image1.When i run the program, the...
0
7207
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7095
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7015
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
4693
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3183
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3173
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1523
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
749
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
403
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.