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
Dan
NA
23
8.5k
Access MyDocuments folder is denied
Jun 28 2013 5:28 AM
I want to retrieve some pictures from MyDocuments folder, but my Try-Catch structure stopped me.
This is my code:
try
{
string[] images = Directory.GetFiles(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "*.png", SearchOption.AllDirectories);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
This is the error that I receive: http://imageshack.us/a/img203/7858/ht1f.png
This is MyDocuments folder: http://imageshack.us/a/img802/8558/mim5.png
Reply
Answers (
3
)
C# datagridview two column multiple each other
How to call a MACRO in C# ?