Mohammad Aminul Islam
Mohammad Aminul Islam

Reputation: 86

how to open a folder by clicking a button in windows form application

How to open a folder by clicking a button in windows form application

I am developing a project in windows form application where I have created PDF file.By clicking a button, I want to open the folder of PDF file where I have saved it. so how can I do this?

N.B: I don't want to run any .exe file. I only want to open a folder.

Upvotes: 3

Views: 17645

Answers (1)

Jones Joseph
Jones Joseph

Reputation: 4938

This one should work

System.Diagnostics.Process.Start ("c:\\");

it opens the c drive in explorer for you

Upvotes: 10

Related Questions