Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hello guys!
I need help creating the button click event, that will open the folder...
Can anyone post a code snippet with such button event action?
Folder should be opened in windows explorer window, as usual.

Regards.
Posted

1 solution

On button click Try this.
Process.Start(@"C:\YourFolder\"); 


The Process class exists in System.Diagnostics namespace.
 
Share this answer
 
v2
Comments
DamiRocK 1-Jun-10 5:13am    
Great! Thanks a lot ;)
VDKK 21-Mar-16 23:41pm    
works like a charm !!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900