Linked Questions
26 questions linked to/from How do I pass command-line arguments to a WinForms application?
-3 votes
1 answer
656 views
Application.Run(new Form1()); via Command Line Arguments [duplicate]
I'm trying to start an application from command line arguments, at Normal run, program runs and displays Form1. I'm looking to start the application with command line arguments to start Form2. ...
-2 votes
1 answer
413 views
Initialize form with a string as input parameter [duplicate]
My c# program is a text editor which needs file name as an input parameter. In other words, I would like to start the c# EXE from a BAT file specifying which file to open. For example: "call C:\Temp\...
0 votes
0 answers
166 views
Passing parameters from a windows service to a console application [duplicate]
I have a windows service that initiates a console app process and calls it at a set time. I believe I can use the Arguments property to pass a parameter to the called console app as such... process....
0 votes
1 answer
111 views
C# - Making a program with variables when called? [duplicate]
I honestly have no idea how to find what I want to know but I will do my best to explain what I would like to know. There are programs like cmdmenusel.exe which can be called in languages like batch. ...
0 votes
1 answer
59 views
Pass items as arguments to my merge sort linked-list program [duplicate]
Hello guys i have a question about my program testing. How do i fill arguments in main(); IList testas = new List(); now its empty , program is running withou errors. Any answer would be a huge help , ...
-1 votes
1 answer
56 views
C# lauch MY app as a default app for a file type [duplicate]
I'm sure I am overlooking something, or not searching for the right question- I have an application that saves a project file (it's in XML) but the file extension is mpxml (my project xml) - the real ...
53 votes
5 answers
42k views
C# application both GUI and commandline
I currently have an application with a GUI. Would it be possible to use this same application from the commandline (without GUI and with using parameters). Or do I have to create a separate .exe (...
2 votes
3 answers
8k views
Allow a custom file to double click and open my application while loading it's data [duplicate]
Just like when you make a reference in windows, to open a .txt file, it may open NotePad.exe and or Word.exe, while loading the text from the file into the editor. How can I do this with my Desktop ...
5 votes
1 answer
3k views
C# Add my Application to Send To When i RightClick on a file
I want to add my Application so when I right click on a file , it shows the Send To > My App. If its possible then , when I click on the SendTo button , how can I get the Selected file ...?? I didn'...
1 vote
3 answers
4k views
Application.Exit Isn't closing my program, any alternatives?
So in my form constructor I have a check for an argument. If I get one of two special arguments then I want to just register/unregister my server and close the program. I don't want the form to load ...
1 vote
3 answers
3k views
How to open a text file in C#/WinForms/TextBox - mad Editor
I have developed a Text Editor in WinForms. you can download it from here and use it. It works fine. But when I right-click a text file in Windows Explorer and try to open it, it doesn't show it. I ...
-1 votes
2 answers
2k views
How to set C# application to accept Command Line Parameters? [duplicate]
I have created a C# command line application that creates a few reports automatically for my client. However, even though they use 95% of the same code I would like to split them in to different ...
5 votes
3 answers
146 views
Has my application been started by hand?
I am developing a Forms application that is either supposed to start on Windows boot (by registering a key in the registry) or by the actual user. In case the user starts it by hand (i.e. clicking ...
4 votes
2 answers
537 views
Opening Image directly into program
I made a basic picture viewer program in C# windows from , following a tutorial. The program works fine but I want to open it like default windows photo viewer. I tried to open an image with the ...
2 votes
1 answer
622 views
How to make a default photo viewer or text editor etc in winform
I was creating a Photo Viewer in C# winform and I was using the openfiledialog to open files in it. But then I thought to make it work as a proper photo viewer if anyone click on its image file eg png,...