473,414 Members | 1,627 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,414 software developers and data experts.

Custom TreeView Scroll Problem

I've extended the TreeView class and the TreeNode class to add the
functionality for each node to be a TableLayoutPanel. When I scroll,
the first node stays on top and the second nodes gets shoved
underneath. You can see this in a picture at http://
i153.photobucket.com/albums/s220/cobratest/treeviewproblem.gif. If the
second node is shorter or the same length as the first node, this
issue isn't seen, but if I have a longer length text as the second
node, you can see the end of the second string peeking out to the
right of the first node.

I've attempted to capture the OnLayout event as well as scroll and
paint events in order to try to hide all TableLayoutPanels when it
scrolls off the screen. How can I do this?

Matt

Feb 6 '07 #1
0 1645

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: timtos | last post by:
I want to write my own treeview control. I set this.SetStyle(ControlStyles.UserPaint, true); and painted a treeview from scratch. So far so good. The problem now is that if I use/ tear the...
3
by: Benny Raymond | last post by:
I've looked around msdn for about an hour now and can't figure out how to place an event when the user scrolls, or even how to get the value of where the scroll bar is actually placed... Anyone...
1
by: Rick Delorme | last post by:
Hi, I have a MS treeview webcontrol in my page, it is wrapped with a div tag so that I can provide scrolling (the treeview has the potential to get quite long). However, when the scrolling is...
0
by: Rod Billett | last post by:
I programmatically place a treeview inside a DIV tag to enable scrolling. I am also dynamically populating the nodes in the ExpandNode event. Before placing the treeview within the Div,...
3
by: William Sullivan | last post by:
I desperately want to replace my hand-made ajax treeview with the 2.0 TreeView. The webpage I'm designing uses the postbacks to dynamically fill the treeview. The reason why I'm doing this is...
2
by: Claus | last post by:
Hello, I have a long treeview with scrollbars. When I scroll down and press a treeview node, then the Load event fires and navigate in an iframe to another page. The problem is, that afterwards...
1
by: Daves | last post by:
Sorry folks but I will be reposting this question from 6/5 until someone gives me an answer - the question is very easy and so ought the answer to be. I really need the answer! ------- I'm...
0
by: apenly | last post by:
Hi all- I'm trying to Render a TreeView in a custom control, but I'm receiving a NullReferenceException at runtime. If I put the TreeView on the page it works fine, but as soon as I try to...
0
by: AKIAKI | last post by:
Hello. I wish TreeView & DataGridView were synchronized. (Same row is Selected and Selected Row is equal high ) I set DataGridView & TreeView on Split Container. When TreeView does not have...
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: 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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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
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,...
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...
0
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,...

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.