Solved

ASP.net Table cell - set font

Posted on 2013-11-10
2
975 Views
Last Modified: 2013-11-10
Hi
I use the following VB.net code to set the width of an ASP.net table
tCell.Width = 100
How do I set the font to "Century Gothic"
The following line gives the error "Property Font is 'Read Only'"
tCell.Font = "Century Gothic"
0
Comment
Question by:murbro
2 Comments
 
LVL 19

Accepted Solution

by:
Rikin Shah earned 500 total points
ID: 39638017
Hi,

Try-

tCell.Font.Name = "Century Gothic"
tCell.Font.Size = 25
etc...
0
 

Author Closing Comment

by:murbro
ID: 39638029
Worked well. Thanks very much
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question