Hello. I have sadly been trying to solve this since 1pm, (its now 9)
Basicaly i have a single instance project
when a user right clicks an image it trys to host it. i use this code (yes this really did take me all them hours to get)
Private Sub MyApplication_StartupNextInstance(ByVal sender As Object, _
ByVal e As StartupNextInstanceEventArgs) _
Handles Me.StartupNextInstance
e.BringToForeground = True
MainForm.Visible = True
MainForm.WindowState = FormWindowState.Normal
MainForm.BringToFront()
MainForm.Activate()
Application.DoEvents()
If e.CommandLine.Count > 0 Then
For Each arg As String In e.CommandLine
'Process the commandline args
Dim Dir As String = arg
' Dim fi As New System.IO.FileInfo(Dir)
' Dim sTemp As String = fi.Name
MessageBox.Show(Dir)
Next
End If
End Sub
The msgbox is only there to show me i caught the arg. My question is how can i use this info in my application? every google link is red. i have really tryed searching for the problem for hours before asking.
I need to add the DIR varible to txtFilePath.Text and then call my sub Call UploadPicture()
help :(