473,696 Members | 1,487 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How set default font size for labels and text boxes

When placing labels and text boxes on winforms they are coming up by default
in a size that is just a little too small. How do I change this so that in
the future they will come up with a bigger font size?

Nov 20 '05 #1
2 15034
This also works if you change the default font size on the form.

"Kevin Yu" <v-****@online.mic rosoft.com> wrote in message
news:o0******** ******@cpmsftng xa06.phx.gbl...
Hi Woody,

You cannot change default font size for the Textbox in Visual Studio .NET
IDE. However, you can change the container's font property to achieve this.
For example, you can place a panel in the form and set the font of the
panel to your default size. After that, each time you drag a control onto
that panel, the control's default font size will be the same as the panel's.
If there's anything unclear, please feel free to reply to the post.

Kevin Yu
"This posting is provided "AS IS" with no warranties, and confers no

Nov 20 '05 #2

"Jerry" <Je*********@ya hoo.com> schrieb:
This also works if you change the default font size on the form.

The form is a container.

Herfried K. Wagner
MVP · VB Classic, VB .NET
Nov 20 '05 #3

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

Similar topics

by: Marti | last post by:
Dear everyone, Its my understanding that IE6 now uses a default text-size of "Small" rather than IE5's "Medium". Since I have used relative font-sizes (usually in ems) on all my sites, I am now getting reports of "your fonts are too tiny" from various users. Of course, the sites still look fine if those users set their text-size to medium, but face it -- most people don't even know thats an option.
by: Haines Brown | last post by:
I've been setting font-size 1em; as the default in my style sheets. Until now, that seemed to be ok. But now I'm beginning to wonder. My aim is to have an easily readable, but not overly large text when the user uses the default font size in his browser and uses the typical display resolution. I did a reinstall of my friendly browser in a different environment, and I am surprised to find that its default for serif is Times 16 and
by: Not Me | last post by:
Hi, I have a report, viewable in continuous form. I don't want the size of the report to change (it should fit address labels on the printer), but in order to minimise the space between empty fields I shrink the text boxes, bunch them together and set cangrow to on. E.g. instead of this: Some name
by: VR | last post by:
I designed an ASP.NET page and in the IDE design view the page looks just fine. It also looks fine when I view it in the browser on my development PC. When I look at the same page, using the same browser (IE 6.0) on a different system, it's all messed up -- some labels overlay text boxes, etc. I noticed, that on that system the font is set to large (125%) in "Display Properties". By making the labels on my page larger fixes the...
by: benfly08 | last post by:
Hi, guys. I'm developing a web application for Sales Department people in my company. I used my 1024X768 resolution and "Medium" IE text size to test my Layout and it worked fine. However, some people in Sales Department use different settings like "800X600", "Larger" IE text size or even "Large font" in Appearance tab in Display Property. Those different settings would mess up my layout. What I want to do is to set font size of labels,...
by: Doogie | last post by:
How do I make a value the default value for a combo box in ASP 3.0? What I have below does NOT work, yet I've seen it in HTML file examples before (and works if I put it in a HTML file by itself, but not if I use it in a ASP 3.0 app. <select name="cboCompany" style="text-align:right; font-size:8pt"> <option value="08">08</option> <option value="09" selected="true">09</option> <option value="33">33</option>
by: MLH | last post by:
Without modifying the default font settings everywhere, is there any way to specify it for just message boxes? MsgBox "I would like this text to be larger for all message boxes." ???
by: =?Utf-8?B?VG90eSBTYW50YW5h?= | last post by:
I am using textboxes, buttons labels and drop down lists on a web page, but i noticed that textboxes and buttons font size doesn't change when i change the font size in IE ( from IE menu: View>>Text Size>>) though the size is changing for lables and drop down lists, i am using skin for these controls but all the skin have the same font settings(font size is set to small) i tried removing the textbox skin to see if this chnages anything but...
by: Mike Borrowdale | last post by:
-- Hi, my application simulates a panel of scientific instruments. Digital readouts are provided by label components embedded in a TableLayoutPanel with the rows and columns set to percentages of size, so the labels expane and contract when the application is resized. So far so good. My customer wants the maximum text size possible for easy readability, but the labels seem to require a lot of 'white space'
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...
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...
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...
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...
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
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...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
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 we have to send another system
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.