Treeview control help

  • Thread starter Thread starter fgh
  • Start date Start date
F

fgh

Hello, two questions please:

1) In a treeview, I want to display folders like it is done in Windows
Explorer. Do I have to do this manually or can I set something up in VS.NET
2003?

2) Most importantly, in Windows Explorer, you can drag the treeview's right
edge to resize it to your will. How can I do this with my treeview (at
runtime obviously)? Do I need to use a splitter? Any info would be
appreciated very much.

I'm using C# by the way, but I doubt that'll make much of a difference.
Thank you for the information. Good bye.
 
And another question:

Saying I have a Form in VS.NET. I add a treeview and listview left and right
respectively, and at the top. At the bottom, I add a panel. WHen I run it,
if I resize the form or maximise, I want the controls to expand their sizes
proportionately. Like they do with almost every application. How can I do
this? BTW I anchored the treeview TOP and LEFT because obviously that's how
I want it. And the listview I ancored RIGHT and TOP as well of course. The
panel just BOTTOM, LEFT AND RIGHT (it covers the whole area). When I resize
the app while running, I want the components to resize proportionately.

I hope this is clear.

Thanks for any help.
 
Hi fgh,

Based on my understanding, you want to use TreeView and ListView to make a
windows explorer like Form.
================================================
Normally, you may first add a TreeView to the form, whose Dock property is
set as Left, then you may drag a Splitter control on the form, it will
automaticly dock to the right of TreeView. At last, you may drag a ListView
control to the form, make its Dock property to Fill, then it will fill the
left right aera of the form.

For more information about making a windows explorer like Form, please
refer to the below:
http://www.thecodeproject.com/csharp/tv-lv-basic41.asp
http://www.c-sharpcorner.com/Code/2002/Aug/WinExplorer.asp
http://www.c-sharpcorner.com/winforms/Niranjan_winexplorer.asp

========================================
Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
That's correct, thank you for the settings, they work perfectly. Thanks
again.
 
Hi fgh,

Thanks very much for your feedback.
I am glad I can help, if you need further help, please feel free to tell me.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top