inside
inside

Reputation: 3177

get shortcut for WinForm without having seperate project

I have a project with different Win Forms in it. I can open all the forms from one form which is executable of my current project. I am wondering if there chance to create something like a shortcut to open one of the forms not only from my main form but also just from file explorer.

Thanks

Upvotes: 1

Views: 67

Answers (2)

Joel Coehoorn
Joel Coehoorn

Reputation: 415820

You could add a command line argument to a shortcut, and add code to your app that looks at the command line at startup time and opens a different form based on what the code finds.

Upvotes: 3

Max
Max

Reputation: 13338

No, you will need to create an extra project, since the Main form always need to run, in order to keep your application running.

Upvotes: 1

Related Questions