473,406 Members | 2,745 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,406 software developers and data experts.

Asp.Net tree view control font problem

Dear all i am downloading MS tree view control . i want to change the
font size and font name of the tree view control i am wrtitting code
for ity like
if (!Page.IsPostBack)
{
treeview1.FontBold = true;
treeview1.Font.Name = "DVB-TTSurekh";
treeview1.FontSize = Font.FontUnit(14);
}

but the code is not working can any one tell me what is the problem
with in it . how i can change the font size and font name of treeview
control .

Jul 24 '06 #1
4 2146
In article <11**********************@m73g2000cwd.googlegroups .com>,
Santosh <Sa***************@yahoo.comwrites
>Dear all i am downloading MS tree view control . i want to change the
font size and font name of the tree view control i am wrtitting code
for ity like
if (!Page.IsPostBack)
{
treeview1.FontBold = true;
treeview1.Font.Name = "DVB-TTSurekh";
treeview1.FontSize = Font.FontUnit(14);
}

but the code is not working can any one tell me what is the problem
with in it . how i can change the font size and font name of treeview
control .
Never tried it that way, but if you give the control a cssClass
property, and use CSS to set the font info, it works fine.

HTH

--
Alan Silver
(anything added below this line is nothing to do with me)
Jul 30 '06 #2
I have also tried by applying CSS class but it is not working.

Alan Silver wrote:
In article <11**********************@m73g2000cwd.googlegroups .com>,
Santosh <Sa***************@yahoo.comwrites
Dear all i am downloading MS tree view control . i want to change the
font size and font name of the tree view control i am wrtitting code
for ity like
if (!Page.IsPostBack)
{
treeview1.FontBold = true;
treeview1.Font.Name = "DVB-TTSurekh";
treeview1.FontSize = Font.FontUnit(14);
}

but the code is not working can any one tell me what is the problem
with in it . how i can change the font size and font name of treeview
control .

Never tried it that way, but if you give the control a cssClass
property, and use CSS to set the font info, it works fine.

HTH

--
Alan Silver
(anything added below this line is nothing to do with me)
Aug 3 '06 #3
Which Treeview control are u using?
which version 1.1 or 2.0?
PAtrick

"Santosh" <Sa***************@yahoo.comwrote in message
news:11**********************@s13g2000cwa.googlegr oups.com...
>I have also tried by applying CSS class but it is not working.

Alan Silver wrote:
>In article <11**********************@m73g2000cwd.googlegroups .com>,
Santosh <Sa***************@yahoo.comwrites
>Dear all i am downloading MS tree view control . i want to change the
font size and font name of the tree view control i am wrtitting code
for ity like
if (!Page.IsPostBack)
{
treeview1.FontBold = true;
treeview1.Font.Name = "DVB-TTSurekh";
treeview1.FontSize = Font.FontUnit(14);
}

but the code is not working can any one tell me what is the problem
with in it . how i can change the font size and font name of treeview
control .

Never tried it that way, but if you give the control a cssClass
property, and use CSS to set the font info, it works fine.

HTH

--
Alan Silver
(anything added below this line is nothing to do with me)

Aug 3 '06 #4
i have downloaded MS IE Treeview control 1.1

Patrick.O.Ige wrote:
Which Treeview control are u using?
which version 1.1 or 2.0?
PAtrick

"Santosh" <Sa***************@yahoo.comwrote in message
news:11**********************@s13g2000cwa.googlegr oups.com...
I have also tried by applying CSS class but it is not working.

Alan Silver wrote:
In article <11**********************@m73g2000cwd.googlegroups .com>,
Santosh <Sa***************@yahoo.comwrites
Dear all i am downloading MS tree view control . i want to change the
font size and font name of the tree view control i am wrtitting code
for ity like
if (!Page.IsPostBack)
{
treeview1.FontBold = true;
treeview1.Font.Name = "DVB-TTSurekh";
treeview1.FontSize = Font.FontUnit(14);
}

but the code is not working can any one tell me what is the problem
with in it . how i can change the font size and font name of treeview
control .

Never tried it that way, but if you give the control a cssClass
property, and use CSS to set the font info, it works fine.

HTH

--
Alan Silver
(anything added below this line is nothing to do with me)
Aug 5 '06 #5

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

Similar topics

2
by: Gregor Horvath | last post by:
Hi, Before I reinvent the wheel I`d like to ask if someone has done this before since I did not find an advice at Google. The goal is to create a dynamic Tree View in HTML. Say I have a...
0
by: Tree menu using XML | last post by:
I have one XML file that has nodes and sub node and each and every node has the attribute call visible if its value is true then diplay this node else don't display thid node, but this condition i...
1
by: Nick Warrington | last post by:
Hi all, I am having a small problem with a tree control I am playing with. I have created a custom tree view that displays nodes with a linktext control to the right of the nodes. When the...
10
by: dwok | last post by:
Does anyone know of a good article that discusses creating a "Tree View" control in ASP.NET? Or perhaps a Tree View Control that comes with source code? I have come across a lot of tree controls...
12
by: Raed Sawalha | last post by:
I have the following table which i can not switcha to design view error message said Could not open in Design view. Quote values differently inside a '<% ...."value"... %>' block. and the...
1
by: Nogusta123 | last post by:
Hi, I have had a lot of problems getting web pages, master pages and content pages to render in VS2005 design view the same as they would in Internet Explorer. I did a lot of looking on the...
1
by: Satish.Talyan | last post by:
hi, i want to create a dynamic tree hierarchy in javascript.there are two parts in tree, group & user.when we click on group then users come under that's tree category will be opened.problem is...
0
by: Santosh | last post by:
Asp.Net tree view control font problem Dear all i am downloading MS tree view control . i want to change the font size and font name of the tree view control i am wrtitting code for it like ...
0
by: Santosh | last post by:
Dear all i am downloading MS tree view control . i want to change the font size and font name of the tree view control i am wrtitting code for it like if (!Page.IsPostBack) {...
0
by: nishad | last post by:
dear all, I have a tree view control bound to xml file and I am using XMLDataSource comntrol connect to XML file. I set the Populateondemand property of the Tree View control to True. But I think...
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
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:
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
tracyyun
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
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...

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.