How to Pass Arguments to the Executable Application with VB.NET

To pass arguments to the executable apps in vb.net you will use Environment.GetCommandLineArgs(), which will return an array of string.To do this declare a variable to hold the passed parameters.

Dim RetVal as string()

RetVal = Environment.GetCommandLineArgs()

For more information click this link.

, ,

  1. No comments yet.
(will not be published)
Submit Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Subscribe to comments feed
  1. No trackbacks yet.

SetPageWidth