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

Text Size change in a text box

Hi,

I am facing difficulty in controlling the Textbox text
size. Can someone point out where I am going wrong.

Dim TB as Textbox

TB.Text = "Test" 'Works
TB.Font = New Font(TB.Font, FontStyle.Underline) 'Works

TB.Font.Size = ??? 'Help required ???

Regards

Vinay
Nov 20 '05 #1
3 5046
"Vinay" <cu****@cursor.com> schrieb
Hi,
'Morning,
I am facing difficulty in controlling the Textbox text
size. Can someone point out where I am going wrong.

Dim TB as Textbox

TB.Text = "Test" 'Works
TB.Font = New Font(TB.Font, FontStyle.Underline) 'Works

TB.Font.Size = ??? 'Help required ???

Regards

Vinay


You can not change the size (probably because the OS (Windows, you know)
doesn't allow a font's size to be changed).

tb.font = new font(tb.font.name, NewSize, fonstyle.underline)
--
Armin

Nov 20 '05 #2
Cor
Hi Vinay
I think this works
TB.Font = New Font(TB.Font.Name, 15)
Cor
Nov 20 '05 #3
"Vinay" <cu****@cursor.com> schrieb
Hi,
'Morning,
I am facing difficulty in controlling the Textbox text
size. Can someone point out where I am going wrong.

Dim TB as Textbox

TB.Text = "Test" 'Works
TB.Font = New Font(TB.Font, FontStyle.Underline) 'Works

TB.Font.Size = ??? 'Help required ???

Regards

Vinay


You can not change the size (probably because the OS (Windows, you know)
doesn't allow a font's size to be changed).

tb.font = new font(tb.font.name, NewSize, fonstyle.underline)
--
Armin

Nov 20 '05 #4

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

Similar topics

0
by: Tony Burrows | last post by:
I have a JTextPane with several styles. The style data is loaded from/ saved to a file. I can modify the styles at run-time and the new styles are saved to disk. The next time the app is run...
4
by: stef | last post by:
Hello: I am trying to design a web page whose graphics content would change according to the "text Zoom" settings of the user. (Basically the goal is to use mathematical symbols that...
9
by: Peter | last post by:
Hi at all, how can I do to make a css file to change automatically the text size of the text that is into a table relatively the screen size? I.E. if the screen is 800 x I want the text...
4
by: Arif Çimen | last post by:
Hi to everybody, I have chnged a button text in design mode. But After compiling and executing the program the text of the button do not change to new value. Any Ideas? Thaks for helps.
4
by: UJ | last post by:
I have a client who wants me to make a web page with a marquee on it. No problem. They want the text to be easily changeable. No problem. They want it so that the text will appear about the...
4
by: devine | last post by:
Hi All, I am VERY new to Javascript. I have been provided with some code, which will enable me to hide/show a text area and change a submit button dependant on a check box. <!DOCTYPE html...
1
by: peck2000 | last post by:
Related to my earleir post ... this is the same project to re-purpose the Classifieds application in BEGINNING ASP 3.0 (Wrox) to a comicbook database ... This is a brainteaser that should have...
21
by: Cartoper | last post by:
I am working on a browser kiosk needs to be able to be run at multiple screen resolutions. What I would like to do is keep the text the same size relative to the screen, all the time. In other...
18
by: wizdom | last post by:
Help - change text on click - text has another onclick inside with php variables ---------- I think what I'm trying to do is simple. I have a 2 buttons on a page. 1 button allows a thread of...
7
by: kirkgilbert | last post by:
I am trying to do an onchange event in a form using a text field. The form is tied to a record set that is part of a repeated region. One the first record when I edit the data it works perfectly. ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
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...
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
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...

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.