473,765 Members | 2,021 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.IsPostBa ck)
{
treeview1.FontB old = true;
treeview1.Font. Name = "DVB-TTSurekh";
treeview1.FontS ize = Font.FontUnit(1 4);
}

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 2167
In article <11************ **********@m73g 2000cwd.googleg roups.com>,
Santosh <Sa************ ***@yahoo.comwr ites
>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.IsPostBa ck)
{
treeview1.Font Bold = true;
treeview1.Font .Name = "DVB-TTSurekh";
treeview1.Font Size = Font.FontUnit(1 4);
}

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************ **********@m73g 2000cwd.googleg roups.com>,
Santosh <Sa************ ***@yahoo.comwr ites
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.IsPostBa ck)
{
treeview1.FontB old = true;
treeview1.Font. Name = "DVB-TTSurekh";
treeview1.FontS ize = Font.FontUnit(1 4);
}

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.comwr ote in message
news:11******** **************@ s13g2000cwa.goo glegroups.com.. .
>I have also tried by applying CSS class but it is not working.

Alan Silver wrote:
>In article <11************ **********@m73g 2000cwd.googleg roups.com>,
Santosh <Sa************ ***@yahoo.comwr ites
>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.IsPostBa ck)
{
treeview1.Font Bold = true;
treeview1.Font .Name = "DVB-TTSurekh";
treeview1.Font Size = Font.FontUnit(1 4);
}

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.comwr ote in message
news:11******** **************@ s13g2000cwa.goo glegroups.com.. .
I have also tried by applying CSS class but it is not working.

Alan Silver wrote:
In article <11************ **********@m73g 2000cwd.googleg roups.com>,
Santosh <Sa************ ***@yahoo.comwr ites
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.IsPostBa ck)
{
treeview1.FontB old = true;
treeview1.Font. Name = "DVB-TTSurekh";
treeview1.FontS ize = Font.FontUnit(1 4);
}

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
3889
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 data strucure like this: structList =
0
2180
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 am able to check using xpath in asp.net 2.0 till MenuItem node. if i check visible attribute value till SubMenuLevel0 node then in tree it will not display the MenuItem Node at all Note: My tree Menu will start from MenuItem node and it will...
1
1877
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 linktext is clicked the linktext control is hidden and a combo box appears in its place that allows the user to choose an option. Once selected, the combo is hidden and the linktext control reappears displaying the new selection. My problem is that...
10
2529
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 for ASP.NET however most of them are already compiled and don't come with source code. I am really just looking for an example on how to create my own Tree Control. Thanks a bunch.
12
2217
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 line which make the error is anchor but i cannot make it work. <TABLE id="tblDocList" dir="<%#strLangDir%>" style="DISPLAY:inline"
1
6341
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 internet for answers but didn't have much luck. Anyway I believe I have found the causes of the problems and thought I should share them in case any one else is feeling the pain and also to find out what other peoples opinions are, on whether these...
1
4832
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 that i am not able to arrange three things simultaneously,group,users & there functionality simultaneously.dynamic means group & users come from database and groups & users can be increased in number at any time. i am sending code for that tree...
0
375
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 if (!Page.IsPostBack) { treeview1.FontBold = true; treeview1.Font.Name = "DVB-TTSurekh";
0
1140
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) { treeview1.FontBold = true; treeview1.Font.Name = "DVB-TTSurekh"; treeview1.FontSize = Font.FontUnit(14);
0
1397
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 the XML file is taken fully at the first loading. I have'nt writen any code in the populateondemand event handler. I dont know if it needs some code. Actually I want to get data of the xml parts by parts as needed.
0
9568
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9404
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10164
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10007
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9959
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9835
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8833
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5277
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3926
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.