Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / October 2004

Tip: Looking for answers? Try searching our database.

Using different font in TreeView cuts text

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TEK - 08 Oct 2004 01:35 GMT
Hello

I'm trying to modify some of the nodes in a treeview control to be drawed
using bold text.
However, the node text is beeing chopped at the end for the bold nodes.

Anyone that knows the solution to this?

Best regards, TEK
Chavez - 15 Oct 2004 22:29 GMT
I've had the same problem before as well. I have not found a viable solution
other then adding extra spaces after the text:
Dim nNode As TreeNode = tv.Nodes.Add("Bold Text     ")
the font for this node was already defined with the font style being set to
FontStyle.Bold.

I've also noticed with this that when you hover over the selected node and
are shown a Tool Tip you see the extra spaces after the last word.

If I'm able to find a good solution I will post here.

> Hello
>
[quoted text clipped - 5 lines]
>
> Best regards, TEK

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.