hello guys
i am try to save picture without using file dialog
duing i compile my code at my computer, windows 7
the picture is save without showing file dialog
but after i install my aplication on other computer, windows 7
it keep showing file dialog.
can i know how to remove that file dialog?
What I have tried:
_pathLoc = "C:\\bookbar\\Book Borrowed Record\\Form " + formNumber + "\\" + formName ;
if (!Directory.Exists(_pathLoc)) {
Directory.CreateDirectory(_pathLoc);
}
_imagePath = _pathLoc + "\\" +studentName + ".jpeg";
var bmp = new Bitmap(Width, Height, CreateGraphics());
DrawToBitmap(bmp, new Rectangle(0, 0, Width, Height));
e.Graphics.DrawImage(bmp, 0, 0);
bmp.Save(@_imagePath, System.Drawing.Imaging.ImageFormat.Jpeg);