Linked Questions

64 votes
3 answers
87k views

I'm looking for a way that I can parse command line arguments into my WPF application with just a way of reading the value of the argument that the user passed. As an example application.exe /...
Sandeep Bansal's user avatar
26 votes
12 answers
16k views

If I have set my program to be a Windows Application, and used the AttachConsole(-1) API, how do I get Console.WriteLine to write to the console I launched the application from? It isn't working for ...
Merlyn Morgan-Graham's user avatar
8 votes
2 answers
7k views

I have a WPF window in a project with a XAML file and associated C# code behind file. If I set "StartupUri=MainWindow.xaml" in App.xaml to this window the window opens as expected when I start my ...
Eric Anastas's user avatar
  • 22.3k
5 votes
2 answers
4k views

How do I get the command line arguments in a Crystal Report WPF Application?
Gihan Lasita's user avatar
  • 3,073
2 votes
2 answers
4k views

I understand that there are problems regarding running a WPF application from a console window and outputting to the console rather than showing a gui (aka This Question). The 'conclusion' of that ...
Ash's user avatar
  • 5,147
5 votes
3 answers
6k views

In one of my WPF projects I get this error when I open the solution and start it up when debugging it. If I rebuild the solution and start it again, the error goes away. I have implemented command ...
Jon Raynor's user avatar
  • 3,912
0 votes
3 answers
1k views

I have developed a C# wpf application with Visual Studio 2012. I published it with Inno Setup. When I start my program by double clicking the item it starts ans show me GUI "A". When I minimize, it ...
user3693167's user avatar
0 votes
1 answer
732 views

I want to override the OnStartup like it is explained in this thread WPF Command Line Now is the problem that I'm using the MVVM Light Toolkit which throws a XamlParseException ,which says that the &...
masterchris_99's user avatar
2 votes
2 answers
185 views

Update 3 This was actually being caused by a Post-Build action I included which uses ILMerge. See here for more details Update2 It seems this was not directly caused by adding the command-line ...
Bassie's user avatar
  • 10.5k
1 vote
2 answers
429 views

I have a simple program. Its job is to move files from A to B (a glorified bat file honestly). The problem I'm having is that it crashes... at the end. App.xaml.cs: <Application x:Class="app.App"...
WernerCD's user avatar
  • 2,187
0 votes
1 answer
442 views

I am trying to process command line arguments for my WPF application for this I have made following changes I have converted the output type as - Console Application commented the StartupUri ...
atulya's user avatar
  • 569