Wrox Programmer Forums
|
Visual Basic 2005 Basics If you are new to Visual Basic programming with version 2005, this is the place to start your questions. For questions about the book: Beginning Visual Basic 2005 by Thearon Willis and Bryan Newsome, ISBN: 0-7645-7401-9 please, use this forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2005 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 19th, 2005, 12:57 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default Images in Treeview

OK,

I have been playing around with the treeview. I am able to manipulate most of the properties but I am having trouble with the images on the left that make up the treeview.

I have made custom images but my problem is that for the text portion of the treenode, I have created a table with multiple rows to hold information. Obviously, this table is more than one line in height which causes the images to not line up correctly.

If you haven't studied this control, then I will fill you in. When this is rendered, the output for the nodes are tables and divs. The images are nested in div tags which are then placed into table cells. I would like to use CSS to set the image to repeat vertically (for the connector line) but I can't find any property settings for this particular cell.

Other than this, I seem to have been able to correctly style every other portion of the treenode. Any help is appreciated.

J
 
Old December 21st, 2005, 12:15 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Since I couldn't find an answer, I simply appended another column to the current table and set the background images to repeat.

I would rather have known if there was a property where I could set the class, but this seems to work.

J
 
Old December 28th, 2005, 01:55 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

On a side note, I probably should have posted this in the ASP.Net forum...





Similar Threads
Thread Thread Starter Forum Replies Last Post
Load Images from and Save Images to a Database cyndie VB.NET 2 August 17th, 2008 06:42 AM
how to creat a treeview with background images tjgrindsted ASP.NET 2.0 Basics 0 January 10th, 2007 04:31 PM
treeview mahmutmol ASP.NET 2.0 Basics 0 August 21st, 2006 06:43 AM
treeview MANOJMETAL ADO.NET 1 April 17th, 2004 08:46 AM
treeview Beulah ASP.NET 1.0 and 1.1 Basics 0 September 10th, 2003 09:00 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.