any one help me to save file name differently each time when button is clicked each time....
here his my code....
Expand|Select|Wrap|Line Numbers
- Private Sub cmdSave_Click()
- Dim bm As Image
- '
- ' Copy image to clipboard
- '
- SendMessage hHwnd, WM_CAP_EDIT_COPY, 0, 0
- ClosePreviewWindow
- picCapture.Picture = Clipboard.GetData
- CommonDialog1.CancelError = True
- CommonDialog1.FileName = "Webcam1"
- CommonDialog1.Filter = "Bitmap |*.bmp"
- On Error GoTo NoSave
- SavePicture picCapture.Image, "c:\test12345 .jpg"
- NoSave:
- cmdSave.Enabled = False
- cmdStart.Enabled = True
- End Sub