I have my Windows Application that accepts args and I use this in order to set up the Window behaviour
problem is that I need to pass text in some of this arguments but my application is looking at it as multiple args, so, this:
'http://www.google.com/' contact 450 300 false 'Contact Info' true 'Stay Visible' true
has actually 11 arguments instead of the 9 that I am expecting.
What is the trick to get ‘contact info’ and ‘stay visible’ to be passed as only one argument?
Are you running it directly from the command line? If so, I’d expect that to work just fine. (I assume you’re using the parameters from the Main method, by the way?)
For instance, here’s a small test app:
Execution:
This is a console app, but there’s no difference between that and WinForms in terms of what gets passed to the Main method.