Question

Im using visual studio 2005 with C# to develop an application that can either perform certain actions by itself or open a form were the user can choose what to do. In order to decide which is done, the application checks its arguments [from main(string[] args)]. What I can't figure out or find is, is it posible to create two icons when the application is deployed so that one of them would open the application with no parameters and the other would open it with parameters?

Was it helpful?

Solution

If you launch the application using an http url then you can pass arguments. However, you do not seem to be able pass parameters from icons on the start menu or desktop. The only way would be to have a http shortcut icon that would launch a browser that would then trigger the download of the deployment manifest.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top