Re: Application Arguements
Thats not really a question - do you mean how would you do it?
http://www.devx.com/dotnet/Article/10115
Re: Application Arguements
Hi, Yeah i realise how i put it sorry for that, i am looking at how to do it.
Will look at the link.
Thanks
Re: Application Arguements
If you want to test your app with different command line arguments, you can do that in the IDE.
Go to Project -> YourApp Properties... -> Debug and enter them into the text box.
Re: Application Arguements
Hi, thanks for all of the replies. I have looked at the example in the link above but it is for a console application. is there a way of doing it for a windows application
Thanks
Stu
Re: Application Arguements
Yes, you can access the arguments using;
Code:
'Test for arguments using
Dim NumberOfArgs As Integer = Environment.GetCommandLineArgs.Length
Dim MyApp As String = Environment.GetCommandLineArgs(0)
Dim FirstArgument As String = Environment.GetCommandLineArgs(1)
The first argument is the command, which is the yourapplication.exe part.
Re: Application Arguements
The same applies in windows app as console app : the Command object allows access to command line parameters.
As Bulldog says above you can test this by setting them via the Debug tab of your projects properties page.
Resolved: Application Arguements
Hi, you guys are a great help
thanks