By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,892 Members | 1,251 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,892 IT Pros & Developers. It's quick & easy.

Command prompt opens up with form application

P: n/a
Jax
I created the .exe using CodeDom and writing a batch file which then compiled the .cs into a windows form application.
The forms application is a CARBON COPY of the standard windows form template that you get when starting a new Form App in VS.
When the .exe runs a commnd prompt/dos-like window appears alongside the form. If this is closed the form closes too and visaversa.
I'd like to hide it but I can get a handle on it becuase the only code that really runs is:

Application.Run(new myCustomForm());

// myCustomForm being the name of my form.

Can anyone help?

Jax
Nov 15 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a

"Jax" <an*******@discussions.microsoft.com> wrote in message
news:1B**********************************@microsof t.com...
I created the .exe using CodeDom and writing a batch file which then compiled the .cs into a windows form application. The forms application is a CARBON COPY of the standard windows form template that you get when starting a new Form App in VS. When the .exe runs a commnd prompt/dos-like window appears alongside the form. If this is closed the form closes too and visaversa. I'd like to hide it but I can get a handle on it becuase the only code that really runs is:
Application.Run(new myCustomForm());

// myCustomForm being the name of my form.

Can anyone help?

Jax


Right click the project in Solution Explorer, click Properties and set
output type to Windows Application.

HTH
Eric
Nov 15 '05 #2

P: n/a
<"Eric Eggermann" <<none>>> wrote:
Right click the project in Solution Explorer, click Properties and set
output type to Windows Application.


There is no solution here, as I understand it - the exe file is
compiled effectively from the command line, not VS.NET.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 15 '05 #3

P: n/a
Jax <an*******@discussions.microsoft.com> wrote:
I created the .exe using CodeDom and writing a batch file which then
compiled the .cs into a windows form application. The forms
application is a CARBON COPY of the standard windows form template
that you get when starting a new Form App in VS. When the .exe runs a
commnd prompt/dos-like window appears alongside the form. If this is
closed the form closes too and visaversa. I'd like to hide it but I
can get a handle on it becuase the only code that really runs is:


When you compile with csc, use /t:winexe instead of either /t:exe or
just nothing.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 15 '05 #4

P: n/a
ah, silly me.

Eric
"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:MP************************@msnews.microsoft.c om...
<"Eric Eggermann" <<none>>> wrote:
Right click the project in Solution Explorer, click Properties and set
output type to Windows Application.


There is no solution here, as I understand it - the exe file is
compiled effectively from the command line, not VS.NET.

--
Jon Skeet - <sk***@pobox.com>

Nov 15 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.