hi! i am new in vb 2010 express i use vb6 before and my code is as below
in vb6
Option Explicit
Private sPhotoPath As String
Private lncount As Long
Private Sub Command1_Click()
Dim iMaxCount As Integer
sPhotoPath = App.Path & "/idimage/"
'lncount = lncount + 1
iMaxCount = GetMaxNumber ' call the GetMaxCount function
If vstwain1.SaveImage(0, sPhotoPath + "photo" + iMaxCount & ".jpg") = 0 Then
MsgBox vstwain1.ErrorString
End If
End Sub
how can do sphotopath in vb2010 cos image i want to save in idimage folder in app folder
thanks
in vb6
Option Explicit
Private sPhotoPath As String
Private lncount As Long
Private Sub Command1_Click()
Dim iMaxCount As Integer
sPhotoPath = App.Path & "/idimage/"
'lncount = lncount + 1
iMaxCount = GetMaxNumber ' call the GetMaxCount function
If vstwain1.SaveImage(0, sPhotoPath + "photo" + iMaxCount & ".jpg") = 0 Then
MsgBox vstwain1.ErrorString
End If
End Sub
how can do sphotopath in vb2010 cos image i want to save in idimage folder in app folder
thanks