473,385 Members | 1,602 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,385 software developers and data experts.

Windows Forms, change font of the controls at runtime?

Hi,

I have a window form with controls (labels, buttons...). I want the
user to have possibility to change the font (name and size) of the
controls. But when the font is changed the size of the controls changed
and some of the controls overlap each other.

How could I fix this problem?

Thanks.

Nov 17 '05 #1
4 2543
Hi,

As a side note you could also need to relocate them, btw it's not an easy
task !
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Iwan Petrow" <xx****@abv.bg> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Hi,

I have a window form with controls (labels, buttons...). I want the
user to have possibility to change the font (name and size) of the
controls. But when the font is changed the size of the controls changed
and some of the controls overlap each other.

How could I fix this problem?

Thanks.

Nov 17 '05 #2
Hi,

As a side note you could also need to relocate them, btw it's not an easy
task !
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Iwan Petrow" <xx****@abv.bg> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Hi,

I have a window form with controls (labels, buttons...). I want the
user to have possibility to change the font (name and size) of the
controls. But when the font is changed the size of the controls changed
and some of the controls overlap each other.

How could I fix this problem?

Thanks.

Nov 17 '05 #3
Hi,

Of course you have to recalculate the size needed for the controls.
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Iwan Petrow" <xx****@abv.bg> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Hi,

I have a window form with controls (labels, buttons...). I want the
user to have possibility to change the font (name and size) of the
controls. But when the font is changed the size of the controls changed
and some of the controls overlap each other.

How could I fix this problem?

Thanks.

Nov 17 '05 #4
Hi,

Of course you have to recalculate the size needed for the controls.
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Iwan Petrow" <xx****@abv.bg> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Hi,

I have a window form with controls (labels, buttons...). I want the
user to have possibility to change the font (name and size) of the
controls. But when the font is changed the size of the controls changed
and some of the controls overlap each other.

How could I fix this problem?

Thanks.

Nov 17 '05 #5

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

Similar topics

0
by: Paul | last post by:
I have a c# Windows Forms application that seems to work fine in Windows 2000 and Windows XP. However I have three problems in Windows 98. 1) On a form with about 200 data bound controls when I...
5
by: Olli Krollmann | last post by:
hello folks, we have been developing several .NET-based windows forms applications during the last two years. there are two mysterious display problems that we have encountered so far but have...
0
by: Tim Haughton | last post by:
I've just released an article on using Test Driven Development with C# and Windows Forms. GUI's are often difficult to test, so I thought it might be of interest. The article along with the...
0
by: Sinisa | last post by:
I have a Windows form which has multiple groups of the same window controls. I wanted to create a control class that has the standard controls in one. something like: public class Sensor :...
0
by: Iwan Petrow | last post by:
Hi, I have a window form with controls (labels, buttons...). I want the user to have possibility to change the font (name and size) of the controls. But when the font is changed the size of the...
2
by: JohnR | last post by:
Let's say I have an MDI parent form with a textbox. If I create an MDI child form and, at runtime, move the MDI child window over the textbox on the MDI parent, the textbox appears in front of the...
4
by: Rod Gill | last post by:
Hi, I have a form that when opened in the designer appears of the screen. The form selector can't be dragged (or resized) and if I scroll right and down to centralise it the form simply jumps...
4
by: tshad | last post by:
What would be a good way to check programmatically whether a service was running? We have a service that dies periodically and I need to check to see if this service is running. I know how to...
1
by: =?Utf-8?B?dmFwb3I=?= | last post by:
I'm interested in getting a Windows forms font to resize similar to what happens with the Windows toolbars when the end-user changes the system font. With the Windows toolbar, the font 'grows' as...
21
by: Dan Tallent | last post by:
In my application I have a form (Customer) that I want to be able to open multiple copies at once. Within this form I have other forms that can be opened. Example: ZipCode. When the user enters...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.