TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Serhan Srhn
NA
9
9.1k
mouse double click in listview?
Dec 3 2014 8:11 AM
I have a listview and want to show folders in C drive in listview. but when I clicked double to listview, it doesn't show folders in folder, for example; folders in program files. I wonder how can I list folders in C drive by mouse duble clicking?
private void lstw_MouseDoubleClick(object sender, MouseEventArgs e)
{
for (int i = 0; i < lstw.Items.Count; i++)
{
if (lstw.Items[i].Selected == true)
{
string path = lstw.Items[i].Name;
lstw.Items.Clear();
listFill(path);
}
}
}
private void listFill(string pth)
{
DirectoryInfo dInfo = new DirectoryInfo(pth);
try
{
foreach (DirectoryInfo di in dInfo.GetDirectories())
{
lstw.Items.Add(di.Name,di.FullName);
}
}
catch { }
}
Reply
Answers (
7
)
Get Google Calendar Events
Whether it is possible