Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is programmatically changing fontsize possible? 1

Status
Not open for further replies.
Feb 8, 2002
43
US
How do I programmatically Change Fontsize to XX-Small in ASP.NET. I need to do this during run time. Thanks.
 
You must replace the Font object with a new one. The new font can be created from the old.
with objRTF.SelectionFont
objRTF.SelectionFont = New Font(.Name, newsize, newStyle)
End With

Forms/Controls Resizing/Tabbing Control
Compare Code (Text)
Generate Sort Class in VB or VBScript
 
I am trying to change the font size on a label web control. Would I still do it the same way?
 
Dim f As New System.Web.UI.WebControls.FontUnit (FontSize.XXSmall)
Label2.Font.Size = f
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top