Is there a way to hide the console window when executing a console application?
I am currently using a Windows Forms application to start a console process but I don't want the console window to be displayed while the task is running.
...
I have a console app, and I would like to find the application's path.
In winforms I can use Application.StartupPath to find the current path, but this doesn't seem to be available in a console app?
...
I need to write a small console app (patch) that turns off the print spooler service, does a few things, then starts the print spooler service. I'd like to write this in C#. Can someone point me in the right direction? Thanks in advance!
...
I just started using ELMAH and am a fan. My team supports a large number of web applications and I'm particularly excited that ELMAH lets us save exceptions from each application to the same MS SQL database table.
We also support a few console, DLL and desktop applications. Is it possible to use the ELMAH DLL to log exceptions in these...
So I've got a ServiceReference added to a C# Console Application which calls a Web Service that is exposed from Oracle.
I've got everything setup and it works like peaches when it's not using SSL (http). I'm trying to set it up using SSL now, and I'm running into issues with adding it to the Service References (or even Web References). ...
I am looking to figure out what my ip address is from a c# console application. I am used to a web application by using the Request.servervariables() method. But not sure about how to do it in a console app. Any ideas?
Thanks
...
What is the best and cleanest way to close a console application on windows mobile?
The application by default is invisible and you cannot see it in the running programs, which is great for running a background process, but sometimes the user might need to close it..
...
Hello im using curses to develop a small console application.
I have a main loop section wich waits for user input, it uses the getstr function, of course this waits for the user to press enter.
I would like to capture the up and down and tab keypresses. I suppose this can't be done with getstr.
Anyone have any idea how to do this?
...
Hi
I am trying to figure out why a program I am working on goes in to "not responding" mode when I ask it to output a large amount of characters to the console it is running in.
I tried creating a small example that just prints out characters, and this will indeed also go "not responding" on me after some 10-20 seconds:
static void Ma...
[Visual Studio 2008]
I created a new project for console application and modified it to look like this:
class Program
{
static void Main (string[] args) {
Thread.Sleep (2000);
}
}
Then I created another project for Windows Form application and modified it:
static class Program
{
//[STAThread] commented this line...
Hello,
I have a console program ( a DOS program) that requires interactive input. After typing in the command line, for example
commandline.exe /ShowReport
The DOS prompt will prompt user to key in some values, and then proceed to the next interactive input.
For example, when I typed in the above command, the console will prompt me ...
hi im new to c# and was trying to code but getting error
can anybody help me with this what am i doing wrong?
using System;
using System.Collections.Generic;
using System.Text;
namespace hodder
{
class Program
{
public static void Main()
{
isHodder(3);
}
static int isHodder(int n)
...
First, some backstory:
I'm making what may amount to be a "roguelike" game so i can exersize some interesting ideas i've got floating around in my head. The gameplay isn't going to be a dungeon crawl, but in any case, the display is going to be done in a similar fasion, with simple ascii characters.
Being that this is a self exercise,...
I have a console application I'm using to run scheduled jobs through windows scheduler. All the communication to/from the application is in email, event logging, database logs. Is there any way I can suppress the console window from coming up?
...
I am programming a simple C# console application.
The spec is:
A game consists of ten frames, which start with a full rack of ten pins. In each frame, you have two deliveries of your ball, in which to knock down as many of the ten pins as you can. If you knock down all the pins on your first ball, it is called a strike. The score doesn...
hi ,
i have an equation that requires a number to be multiplied by itself for the given number of times ,
like:
2 ^ 5
but if i implement the carrot '^' sign it doesnt give the required result ...
am i doing it wrong ?
if so what will be the correct expression for it?
...
hi ,
i am trying to tally two arrays like myArray{a,b,c} and urArray{a,b,c,c}
i wanted to check if both the elements have same elements ,for example in above condition the second array that is 'urArray' has an extra 'c' .
and the code should be able to equate two sets of array if they have the same elements or not and the order of th...
I'm writing a simple console application (80x24) in Java, is there a gotoxy(x,y) equivalent?
...
i m using Dotmatrix printer EPSON for printing the reports, and i need the of how to print the reports without using crystalReport and print dialog, i.e. i want the code for DOS based printing in C#.net.........
...
I wrote a WCF service and I would like to call this the net pipe binding way. I have deployed this in a Windows service.
I wrote this method in my wcf service:
Add(2,1)
It should return 3
I don't know how to call the service hosted in windows in my client console application. I have started my service.
Note:
I would like to call...