Though (sorry to bother again) I am having one other problem now with a different part. I want to read and write to a file in the "MyDocuments" folder. I used the same method as the first problem I was having but the file doesnt show up in the "MyDocuments" folder, the file shows up in the...
ok, I tried the following but I get no pictures at all. There are no errors but there are also no pictures now.
private void btn_capImage_Click(object sender, EventArgs e)
{
string fileName = "IPCams Capture-" + DateTime.Now.ToString("HH-mm-ss tt") + ".jpg"...
It should work because I want it to. idk. In #7, the mod told me to clean up my code and organize it. I did so and was then told to do the second part which would be #9, but it doesn't work.
Not too sure how I would use the Path.Combine method
I am still getting the same error now with the following
private void btn_capImage_Click(object sender, EventArgs e)
{
string imgs = Environment.GetFolderPath(Environment.SpecialFolder.MyPictures)...
Now I am getting "cannot convert from 'string' to 'System.Drawing.Imaging.ImageFormat'"
string imgs = Environment.GetFolderPath(Environment.SpecialFolder.MyPictures);
pbx_image.Image.Save(imgs, "IPCams Capture-" + DateTime.Now.ToString("HH-mm-ss tt") + ".jpg");
I've been trying to find a solution to a problem I am having. I am trying to save a picture to the "My Pictures" folder but I keep getting an error in the code saying "cannot convert from 'string' to 'system.environment.specialfolderoption'"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.