473,396 Members | 1,998 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,396 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 2145
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.