how can i use savefile dialog result ok?

March 8, 2011 at 01:34:31
Specs: Windows 7
i need to create a screen capture program using vb.. and did things up to saving files to selected destination with using save file dialogs... so my problem is... if i want this program to be use as a secret monitoring program. then i need to save this screen images secretly to a destination folder without any user confirmations. how can i do that ? pls help me... here is the coding for which i was trying...
Dim savefiledialog1 As New SaveFileDialog
savefiledialog1.Title = "Save File"
savefiledialog1.FileName = Date.Now.ToOADate

savefiledialog1.Filter = "Bitmap |*.bmp"
If savefiledialog1.ShowDialog() = DialogResult.OK Then //how can we default set this
PictureBox1.Image.Save(savefiledialog1.FileName, System.Drawing.Imaging.ImageFormat.Bmp)
End If
Catch ex As Exception 'Do Nothing
End Try

See More: how can i use savefile dialog result ok?

Report •

March 8, 2011 at 04:52:07
i have fixed it

Report •
Related Solutions

Ask Question