Hi, i have a class, with 2 functions in it. I am calling them like normal, but it seems to error.
My class:
c# Code:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Drawing; namespace WebBrowser { class Mypicssave { public static void Mypictures(Bitmap thumbnail) { String SaveName = DateTime.Now.ToShortDateString().Replace("/", "-") + ".png"; thumbnail.Save(Environment.SpecialFolder.MyPictures + @"\" + SaveName, System.Drawing.Imaging.ImageFormat.Png); } public static void Specicifed(Bitmap thumbnail) { String SaveName = DateTime.Now.ToShortDateString().Replace("/", "-") + ".png"; thumbnail.Save(Properties.Settings.Default.specifiedfolder + @"\" + SaveName, System.Drawing.Imaging.ImageFormat.Png); } } }
And my error:
http://true.zxq.net/error.PNG
Any chance someone could help me?
The full source with the error in calling the class in here:
http://pastebin.com/f5826d534
Thanks in advance![]()




Reply With Quote