Quantcast
Viewing all articles
Browse latest Browse all 27083

VS 2010 app path

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

Viewing all articles
Browse latest Browse all 27083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>