473,401 Members | 2,127 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

Sizing controls

I have a VB.NET Windows Forms application which uses as a splash screen
a Form which I want to cover, exactly and entirely, with a specified
..jpg PictureBox.

So I specified the Form, the PictureBox and the .jpg image as having
exactly the same sizes - 820 wide by 460 deep.

This works perfectly on my development machine and on my Laptop, both of
which run at fairly high screen resolutions.

But when I copy the compiled application to my back-up Desktop machine,
which uses a somewhat lower screen resolution (and has a CRT instead of
a flat monitor), and run it there, the underlying Form shows up as
substantially bigger vertically than the PictureBox, and a couple of
drop-down list controls on the Form appear well below the textual
information (which is actually part of the PictureBox) which is supposed
to explain their use.

What causes this, and how do I avoid it happening?
--
Alan M Dunsmuir
Nov 21 '05 #1
1 1051
"Alan M Dunsmuir" <al**@moonrake.demon.co.uk> schrieb:
So I specified the Form, the PictureBox and the .jpg image as having
exactly the same sizes - 820 wide by 460 deep.

This works perfectly on my development machine and on my Laptop, both of
which run at fairly high screen resolutions.

But when I copy the compiled application to my back-up Desktop machine,
which uses a somewhat lower screen resolution (and has a CRT instead of a
flat monitor), and run it there, the underlying Form shows up as
substantially bigger vertically than the PictureBox, and a couple of
drop-down list controls on the Form appear well below the textual
information (which is actually part of the PictureBox) which is supposed
to explain their use.

What causes this, and how do I avoid it happening?


This behavior is caused by different DPI settings on the maches. Many
laptops/LCDs are used with large fonts (120 DPI), CRTs are typically used
with 90 DPI. You may want to play around with the form's 'AutoScale'
property (see documentation) to prevent this from happening.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

53
by: Andrew Poulos | last post by:
I've got some CSS that looks like this: body { margin: 0; font-family: Arial, Helvetica, sans-serif; font-size: 140.01%; color: #000000; } but IE won't apply the font size to text in table...
2
by: ichor | last post by:
hi i am developing a c# app and i want that when i size the form the controls should also be automatically sized. thanx
0
by: Alexander Bolotnov | last post by:
Hi guys, here is another freaky thing that kind of bugs a lot. Maybe someone has ideas to this. We have a sort of a "dynamic" interface builder that will take a control schema and place the...
4
by: Tim Marsden | last post by:
Hi I would like to add controls to my page at runtime. What containers can I use to host the controls? I know I can add them to the form controls collection, but I need to have control on where...
9
by: Max | last post by:
Hello, Using VB.NET, I can activate an application by entering: AppActivate(intProcessID), where intProcessID is the process ID of a running application. Is it possible to set the size and...
2
by: Sean | last post by:
Is there a way to determine the size of the useable area of a tab control? I'm trying to create a Panel on the fly to place controls in (so it is scrollable), but the Tab Pages are all created on...
4
by: kaosyeti | last post by:
what's the best way to get a form to always open at a specific size. i've sized and saved the forms, changed the borders and had popup on and off all over but can't seem to get it to stay one way...
5
by: lamxing | last post by:
Hi, I've come across a strange problem with the WinForm's sizing. I've designed a WinForm and it runs fine on my computer and some other PCs. But when I was trying to run the app under some PCs...
2
by: John B | last post by:
Hi all, I want to prevent the user being able to vertically size a control, in the same manner that single line textbox and autosize labels do. I can override SetBoundsCore which prevents the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.