Hello Markus,
You can the Font and the Indent properties to set the font that is used by
the treeview and the distance to indent each of the child tree node levels.
For example,
this.treeView1.Font = new Font("Tahoma", 10, FontStyle.Regular);
this.treeView1.Indent = 30;
Unfortunately, these properties are not visible in the Designer but you can
access them from the code. Please also note that these properties affect
the entire treeview control. You cannot set them for each node separately.
Thank you,
Sergiy.
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Content-Class: urn:content-classes:message
| From: "Markus Rytterkull" <
[email protected]>
| Sender: "Markus Rytterkull" <
[email protected]>
| Subject: Treeview font and image
| Date: Fri, 27 Feb 2004 03:31:12 -0800
| Lines: 11
| Message-ID: <
[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcP9JTQbM+5eKQVCSfuwTEaVKZZ32w==
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:47083
| NNTP-Posting-Host: tk2msftngxa12.phx.gbl 10.40.1.164
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Hi!
|
| I wonder if it is possible to change the font size of the
| displayed text in treeview, the default size is a bit
| small in my opionen. Treeview.font isn't supported in CF.
|
| Also I changed the size of the imagelist I use for
| treeview nodes and after this the +/- signs in the
| treeview where minimized as well. Isn't this strange?
|
| / Markus
|