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

Treeview Content Width

Hey guys,
Does anyone know how to get the width of of the client area of the treeview
control?

What I am trying to do is let the users double click on a split control and
have the treeview automatically resize (horizontally of course) to show all
the content. by default, if something does not fit in the client area, the
treeview control adds scrollbars. What I want to do is let the user
"auto-expand" the treeview to the point where the horizontal scrollbar
dissapears.

Thanks!
Nov 20 '05 #1
3 5312
Dim r As Size = TreeView1.ClientSize
Debug.WriteLine(r)
"Juan Romero" <ju*********@bowne.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hey guys,
Does anyone know how to get the width of of the client area of the treeview control?

What I am trying to do is let the users double click on a split control and have the treeview automatically resize (horizontally of course) to show all the content. by default, if something does not fit in the client area, the
treeview control adds scrollbars. What I want to do is let the user
"auto-expand" the treeview to the point where the horizontal scrollbar
dissapears.

Thanks!

Nov 20 '05 #2
I am new to VB.NET (obviously). Why is it that this property is not listed
in the intellisense property inspector when you look up the object's methods
and properties?

Thanks a lot Brian, I appreciate your help!

"Brian" <no****@prairie.lakes.com> wrote in message
news:vu************@corp.supernews.com...
Dim r As Size = TreeView1.ClientSize
Debug.WriteLine(r)
"Juan Romero" <ju*********@bowne.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hey guys,
Does anyone know how to get the width of of the client area of the

treeview
control?

What I am trying to do is let the users double click on a split control

and
have the treeview automatically resize (horizontally of course) to show

all
the content. by default, if something does not fit in the client area, the treeview control adds scrollbars. What I want to do is let the user
"auto-expand" the treeview to the point where the horizontal scrollbar
dissapears.

Thanks!


Nov 20 '05 #3
* "Juan Romero" <ju*********@bowne.com> scripsit:
I am new to VB.NET (obviously). Why is it that this property is not listed
in the intellisense property inspector when you look up the object's methods
and properties?


You can show advanced members in the code editor with the "Hide advanced
members" option under "Tools" -> "Options" -> "Text Editor" -> "Basic"
-> "General".

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4

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

Similar topics

2
by: HarryD | last post by:
Hello, Maybe someone can help? According to ms kb-article 183329 i am trying to populate a treeview object on a asp-page, with realtime data from a accessdatabase. The database routine works...
2
by: HarryD | last post by:
Hello, Maybe someone can help? According to ms kb-article 183329 i am trying to populate a treeview object on a asp-page, with realtime data from a accessdatabase. The database routine works...
42
by: lauren quantrell | last post by:
So many postings on not to use the treeview control, but nothing recently. Is it safe to swim there yet with Access 2000-Access 2003?
3
by: musosdev | last post by:
Hi guys How do I get the new TreeView (asp2.0) to load something in an Iframe? I've setup a NaviagateUrl and set the Target property to the name of the Iframe, but it still tries to load a new...
3
by: Gerhard | last post by:
I have the following code in an .net 2.0 project: <asp:Panel Runat="server" id="pnlNavigation" CssClass="pnlNavigation" Width="165px"> <asp:TreeView ID="TreeView1" runat="server"...
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: =?Utf-8?B?V2FubmFiZQ==?= | last post by:
I have a treeview setup on my page. In case it is relevant, it is set in an accordion, which is inside an update panel. When I click the treeview node, a page loads on the right side of my browser...
0
by: =?Utf-8?B?TWlrZSBDb2xsaW5z?= | last post by:
I have a treeview, which is in an accordion, which is in an updatepanel. When I click on a node in the treeview, it loads up a control as it should. When I click on the same node again, the...
5
by: Max2006 | last post by:
Hi, I have a TreeView and this is my node style: <asp:TreeNodeStyle ForeColor = "#000000" Font-Size="9px" Font-Bold="false" Width="100px" NodeSpacing="3px" /> The problem is the expand...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.