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
Abbas Hamza
NA
100
53k
how can i open a folder directly using WPF FolderBrowserDial
Jul 18 2016 3:48 AM
Hi Guys,
I have create a folder on my C: drive that contain shortcuts to Microsoft office programs such as word, excel and Power point.
i have created a WPF application in that application i have created a button : what i wanted to achieve is to be able when clicked on that button I only wanted to open the folder directly to show the shortcuts.
Is the above achievable ?
I have tried the following but not what i want
public
static
void
OpenFolder()
{
FolderBrowserDialog openFol =
new
FolderBrowserDialog();
openFol.ShowNewFolderButton =
false
;
DialogResult result = openFol.ShowDialog();
if
(result == DialogResult.OK)
{
openFol.SelectedPath = @
"C:\Users\XXX\Desktop\wpf"
;
string
foldername = openFol.SelectedPath;
}
}
Reply
Answers (
1
)
Issue about width and height measurement of textbox
DataGrid Toggle Button Click