By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,498 Members | 1,558 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,498 IT Pros & Developers. It's quick & easy.

Treeview Content Width

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
* "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 discussion thread is closed

Replies have been disabled for this discussion.