Question Whats The Cause Of This Error And How To Solve It?

AliAlsuhail

New member
Joined
Aug 31, 2011
Messages
3
Programming Experience
Beginner
I have a program that takes a screenshot of the screen, then puts it on an Image control( I'm using WPF )
Here is my code where, With the line of the error highlighted :


Capture.PNG


The error message in Visual Studio says : "NotSupportedException : The given path's format is not supported. What's the cause of this and how to solve it?

Thanks:cheerful:!

Here Is A Description To The Vars In The Code :
Name : String = CurDir % "\Images".
ShotHolder : The Image Control.
 
Check what value the Name variable is, something about that path is wrong. At my guess the time string contains ":" chars which are illegal in file names, but there could be other problems with the constructed path too.
 
Back
Top