473,943 Members | 16,616 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

making fonts size fixed

Hello,
I have a project with windows forms. The size of the forms is fixed, and the
text in the form is made to fit exactly in the form. The problem is that if
the user changes the font size in windows, the form itself doesn't change its
size but the text becomes bigger, and only part of it is seen. Is there
anyway to make the text remain in the same size always, regardless of the
font size of windows?

thanks,
--
dshemesh
May 29 '07 #1
4 1433
Hello dshemesh,

Why not tot use AutoScale for the controls, or override the Control.ScaleCo re
for your cases?

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

dHello,
dI have a project with windows forms. The size of the forms is fixed,
dand the
dtext in the form is made to fit exactly in the form. The problem is
dthat if
dthe user changes the font size in windows, the form itself doesn't
dchange its
dsize but the text becomes bigger, and only part of it is seen. Is
dthere
danyway to make the text remain in the same size always, regardless of
dthe
dfont size of windows?
dthanks,
d>
May 29 '07 #2
I'm not sure what these things do. If AutoScale changes the size of the form
it's not good for me. I really need the forms to have a fixed size.
What does Control.ScaleCo re do?
--
dshemesh
"Michael Nemtsev" wrote:
Hello dshemesh,

Why not tot use AutoScale for the controls, or override the Control.ScaleCo re
for your cases?

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

dHello,
dI have a project with windows forms. The size of the forms is fixed,
dand the
dtext in the form is made to fit exactly in the form. The problem is
dthat if
dthe user changes the font size in windows, the form itself doesn't
dchange its
dsize but the text becomes bigger, and only part of it is seen. Is
dthere
danyway to make the text remain in the same size always, regardless of
dthe
dfont size of windows?
dthanks,
d>
May 29 '07 #3
Hi,

"dshemesh" <ds******@discu ssions.microsof t.comwrote in message
news:48******** *************** ***********@mic rosoft.com...
Hello,
I have a project with windows forms. The size of the forms is fixed, and
the
text in the form is made to fit exactly in the form. The problem is that
if
the user changes the font size in windows, the form itself doesn't change
its
size but the text becomes bigger, and only part of it is seen. Is there
anyway to make the text remain in the same size always, regardless of the
font size of windows?
I think that is the incorrect approach, the correct approach is how to
modify my program in such a way that the user can modify the fonts and my
program adapt to the new form.

You can use MeasureString to know how many space a given text will occupy ,
so you can modify your form to show the entire text.
May 29 '07 #4
On Tue, 29 May 2007 02:28:01 -0700, dshemesh
<ds******@discu ssions.microsof t.comwrote:
[...] The problem is that if
the user changes the font size in windows, the form itself doesn't
change its
size but the text becomes bigger, and only part of it is seen. Is there
anyway to make the text remain in the same size always, regardless of the
font size of windows?
If the user has changed the screen resolution or font size in Windows,
they did so for a good reason. If you insist on preventing that setting
from having effect (even if you could), you may very well render your
application unusable to the user.

Between the suggestions from Michael and Ignacio, you should be able to
come up with a solution in which your application is usable regardless of
the way the user has configured their Windows computer.

Pete
May 29 '07 #5

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

Similar topics

21
3931
by: Jay Levitt | last post by:
I'm just starting to play around with CSS and MovableType. My home page (http://www.jay.fm) now validates on both the CSS and the XHTML. However, the Google cached version shows the wrong font in IE6. This seems to be because of the "header" they place before the <head> block; if I save the cached copy to disk and edit that out, it displays fine. It's not a big deal, but I don't notice this problem on other pages, so I wondered if...
66
8464
by: Alan Illeman | last post by:
Is there a listing of serif fonts and san-serif fonts somewhere? Regards, Alan -- A: Because it messes up the order in which people normally read text. Q: Why is it such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?
3
1334
by: phil-news-nospam | last post by:
Here's an example I found on another site. I was visiting the site named in the URL in this image, and got the registrar's site because the domain had apparently expired. Look at the boxes along the top with text on how to renew or how to backorder the domain. They run off the bottom and you can't see all the text, now the link that's supposed to be inside. The question I have: is there a right way to make these boxes show up with a...
57
3716
by: Chris Tomlinson | last post by:
Hi all, Hope someone is able to help. I notice when I design a basic HTML page, it is affected if a WinXP user has Large Fonts set in their Control Panel. However some pages, e.g. www.bbc.co.uk/news are unaffected by this I think. They are definitely not affected by changing the font size within the browser. Because I want to add tables, which will word-wrap incorrectly if the font size is changed, how can I disable allowing the...
19
2090
by: Viken Karaguesian | last post by:
Hello everyone, Just an observation here: the CSS newsgroup (comp.infosystems.www.authoring.stylesheets) is totally dead. Why?... Anyway here's my discussion point: What is the most versatile value to use to set font-size? I set my font size in percentages. I set the main font size in the body tag (which everything will inherit), then adjust other sizes in relation to that (for headers, fine print, etc).
2
2038
by: Steve | last post by:
A few months ago I went to a web site that looked terrible in Firefox, but fine in IE and Opera. It turned out that because I had reset my default font size in Firefox to be larger, that my larger fonts messed up the alignment of the CSS elements on the web site. Why does this happen? More importantly, as a person using more and more CSS, how can CSS be
6
1982
by: Steve | last post by:
I have a div with two - three paragrahs in it. Each paragraph has its own inline style tag with its own font size setting. When I set the last paragraph's font size the font sizes for ALL of the paragraphs change. Why? How can I stop it? I.E>
4
4283
by: Mythran | last post by:
Reposted, originally posted in microsoft.public.vb.crystal which is not an MSDN managed newsgroup.... POST BELOW --------------------- We develop our applications and reports using Visual Studio 2008 with Crystal Reports Basic for Visual Studio 2008. The same issue that's been around for years, where you export a report to PDF and during the export process, CR shrinks the fonts of text and field objects on the report.
10
44114
by: =?Utf-8?B?UmljaA==?= | last post by:
A lot of users at my workplace use different screen resolutions, and I build apps to use 1680 x 1050 pixels res by default. But some users are using 800 x 600, and the apps are too large for their screen. I used to write code in Java a few years ago (2005), and you could stretch a form with the mouse and all the controls and fonts would resize to larger or smaller size. Does .Net framework 3.5 support this kind of functionality? Or -...
0
10135
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9969
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11122
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10662
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9864
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8219
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6087
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6308
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4510
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.