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

Problem in directory operation in TreeView

Hello,

I have a problem in using TreeView.
I have made a dialog with TreeView. When I open this dialog , the Drives
in the computer could be show in this TreeView.This time, I click the node
of directory and get into the directory of "my Directory", then , I close
the
dialog.
Next time, when I open the dialog again, I hope the directory that
I have accessed before could be opened automatically. Just like this:
(I mean default, need not to click the node)

|-C:\
|-D:\
| |--Peter
| |--Working
| |--ABC
| |---my Directory
|-E:\
|-F:\
I have tried to use "path.Expand()", but it seems no good working.
Does anyone can give me any advise or show me somecode for sample?.

Thanks.

bestRegards from
Steven Suen
Nov 15 '05 #1
1 2379
Steven,

It sems that you need to know what you want to expand. When the dialog
closes, you will have to store the path somewhere and then expand that when
you optn it again.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"Steven" <li****@newtouch.com.cn> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hello,

I have a problem in using TreeView.
I have made a dialog with TreeView. When I open this dialog , the Drives in the computer could be show in this TreeView.This time, I click the node
of directory and get into the directory of "my Directory", then , I close
the
dialog.
Next time, when I open the dialog again, I hope the directory that
I have accessed before could be opened automatically. Just like this:
(I mean default, need not to click the node)

|-C:\
|-D:\
| |--Peter
| |--Working
| |--ABC
| |---my Directory
|-E:\
|-F:\
I have tried to use "path.Expand()", but it seems no good working.
Does anyone can give me any advise or show me somecode for sample?.

Thanks.

bestRegards from
Steven Suen

Nov 15 '05 #2

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

Similar topics

2
by: Samuele Giovanni Tonon | last post by:
hi, i'm trying to develop a trivial application which random copy files from a directory to another one. i made it using pygtk for the graphical interface, however i find some problem with...
3
by: Saradhi | last post by:
Hi All, Here I am facing a performance problem with the TreeView Node renaming. I am displaying a hierarchy Data in a treeview in my Windows C# Application. My tree view represents an...
2
by: Mark | last post by:
I got this code from the Internet. Demo on the site works fine but downloaded version is not. I am a very new to .NET, I cannot figure this out, please help. Here is the code: ASPX code: <%@...
3
by: Franky | last post by:
Been having a problem using a treeview. Work great the first time the form containing it is entered but not the second time. Took a while to create a small sample that exhibits the problem, but...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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.