---
title: "Coding tips and tricks by Eric Gunnerson"
url: "https://osherove.com/blog/2003/8/18/coding-tips-and-tricks-by-eric-gunnerson.md"
canonical: "https://osherove.com/blog/2003/8/18/coding-tips-and-tricks-by-eric-gunnerson.html"
published: "2003-08-18T05:42:00"
updated: "2003-08-18T05:42:00"
tags: ["Cool Articles", "Tips & Tricks"]
author: "Roy Osherove"
description: "Here is a nice article by Eric Gunnerson with various tips and tricks. I really liked the first one : “What is the difference between a Windows Forms project and a Console Application project? The somewhat surprising…"
usage: "Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page)."
license: "https://creativecommons.org/licenses/by/4.0/"
---

# Coding tips and tricks by Eric Gunnerson

By Roy Osherove August 18, 2003 In [Cool Articles](https://osherove.com/blog/category/cool-articles), [Tips & Tricks](https://osherove.com/blog/category/tips-tricks)

**Historical article** · Originally published August 18, 2003; technical details may be outdated.

[Here is a nice article](http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/Csharp01212002.asp) by Eric Gunnerson with various tips and tricks. I really liked the first one :

_“What is the difference between a Windows Forms project and a Console Application project?_

_The somewhat surprising answer is not much. The only real difference is that a Console application sends output to a Console Window, and a Windows Form application doesn't. However, this is only the default behavior. There's no reason a Windows Forms application can't have a console window._

_Enabling the console window is easy. From Microsoft Visual Studio®, right-click on the project and choose **Properties**. Change the output type from **Windows Application** to **Console Application**. Or, from the command line, use `/target:exe` instead of `/target:winexe`._

_I've found this to be fairly useful when debugging my applications, and it's easy to turn off the console application when you're done. “_

I did not know that! how very cool!

## More in Cool Articles

[All posts in Cool Articles](https://osherove.com/blog/category/cool-articles)

- Aug 20, 2003

    ### [Make your app support plugins](https://osherove.com/blog/2003/8/20/make-your-app-support-plugins.html)

- Aug 20, 2003

    ### [It's so hardcore you could say it's CLR Porn](https://osherove.com/blog/2003/8/20/its-so-hardcore-you-could-say-its-clr-porn.html)

- Aug 11, 2003

    ### [Server.Transfer vs. Response.Redirect](https://osherove.com/blog/2003/8/11/servertransfer-vs-responseredirect.html)

- Jul 28, 2003

    ### [Resolving DataSet Conflicts](https://osherove.com/blog/2003/7/28/resolving-dataset-conflicts.html)


---

## About the author

**Roy Osherove**: Senior Solutions Architect at AWS working on AI for production and AI-driven development; author of The Art of Unit Testing and Elastic Leadership, with about 20 years of consulting and training on unit testing, TDD, team leadership and continuous delivery.

### Sites

- [RobotPaper](https://robotpaper.ai/): This blog: AI patterns and anti-patterns, AI and coding agents, and engineering leadership.
- [osherove.com](https://osherove.com): Roy's personal site. Author of The Art of Unit Testing and Elastic Leadership; consulting and training on unit testing, TDD, team leadership and continuous delivery, plus about 20 years of blog posts.
- [The Art of Unit Testing](https://www.artofunittesting.com): The Art of Unit Testing, 3rd Edition (Manning): readable, maintainable, trustworthy unit tests, plus TDD workshops in C#, JavaScript, Java and Kotlin.
- [5whys.com](https://www.5whys.com): Roy's writing on software team leadership: self-organizing teams, surviving chaos, learning mode and the Elastic Leadership model.
- [Pipeline Driven](https://pipelinedriven.org): Continuous delivery and DevOps practices: build patterns, pipeline-friendly testing, DevOps metrics and enterprise DevOps.
- [Elastic Leadership](https://www.elasticleadership.com): Elastic Leadership, Roy's framework for software team leaders (survival, learning and self-organizing modes).

### Social

- X: https://x.com/royosherove
- LinkedIn: https://www.linkedin.com/in/osherove/

### Contact

- Contact form: https://forms.gle/jQSx5KoXvrVA1JCK7

### License

Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page). License: https://creativecommons.org/licenses/by/4.0/
