0

i'm working on application that gets files names from Sent-To menu and add them to a listbox using this code:

 For i As Integer = 0 To My.Application.CommandLineArgs.Count - 1

        ListBox1.Items.Add(My.Application.CommandLineArgs(i))

    Next

and it works very well when the application is closed and reopen it with a "Send-to" click but if kept the application running and clicked Send-to Nothing appear so how to pass command line arguments while the application is running??

Update: my application is single instance so it will not open a new app

Ňɏssa Pøngjǣrdenlarp
  • 38,411
  • 12
  • 59
  • 178
Ashraf Emad
  • 183
  • 10

0 Answers0