473,405 Members | 2,167 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Command prompt opens up with form application

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
4 1850

"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
<"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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Laura Zeafla via .NET 247 | last post by:
I used the .NET forms application wizard. From the form youclick a button and it calls a C++ function through its dll. This function is supposed to pop-up a command prompt window. Something about...
2
by: WStoreyII | last post by:
how do i change the default directory and prompt fo the the .net command prompt for example when i load it i wish the directory to already be desktop and the prompt to be Cmd: thanks ...
6
by: Mark R | last post by:
Hi Guru's, I have a frontend application where my boss wants to when people are using the database. I have a form which OnOpen, inserts the username, network login and date/time it was opened to...
4
by: Jax | last post by:
I am creating an executable using CodeDom. Once the file is written, a batch file is built and runs that compiles the .cs file into an exe. Everything is fine (well almost, i'm posting twice), but...
1
by: Visually Seen # | last post by:
Hello there!, I'm a male 12 year old C# programmer and I use the Visual C# Express Edition 2005 Beta 2 to make my applications. However, I have this problem: When I first started off a...
4
by: Peter Nimmo | last post by:
Hi, I am writting a windows application that I want to be able to act as if it where a Console application in certain circumstances, such as error logging. Whilst I have nearly got it, it...
3
by: kimiraikkonen | last post by:
Hi experts, I just want to ask a simple procedure of my simple form. My form has a input textbox and a button. I want this if you can help me: Application user types a command prompt command...
7
by: Jwe | last post by:
Hi, I've written a program which has both a command line interface and Windows form interface, however it isn't quite working correctly. When run from command line with no arguments it should...
16
by: Steve | last post by:
I am working on a database that has a main menu, many sub-menus and some sub-sub-menus. They are all forms that have numerous command buttons on them to open forms and reports in the database. The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.