---
title: "A UI Singleton?"
url: "https://osherove.com/blog/2004/4/14/a-ui-singleton.md"
canonical: "https://osherove.com/blog/2004/4/14/a-ui-singleton.html"
published: "2004-04-14T13:07:00"
updated: "2004-04-14T13:07:00"
tags: [".Net Quotations"]
author: "Roy Osherove"
description: "Steven explains a concept I haven't thought about before - the UI Singleton pattern . Nice concept. Yeah, I can admit that I've done my share of “ Expose this control of the form as a Public Static member ” Sorry.…"
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/"
---

# A UI Singleton?

By Roy Osherove April 14, 2004 In [.Net Quotations](https://osherove.com/blog/category/net-quotations)

**Historical article** · Originally published April 14, 2004; technical details may be outdated.

[Steven](http://weblogs.asp.net/stevencohn/) explains a concept I haven't thought about before - the [UI Singleton pattern](http://weblogs.asp.net/stevencohn/archive/2004/04/13/112695.aspx).

Nice concept. Yeah, I can admit that I've done my share of “_Expose this control of the form as a Public Static member_” Sorry. Steven's approach is so much simpler. Definitely something to think about

## More in .Net Quotations

[All posts in .Net Quotations](https://osherove.com/blog/category/net-quotations)

- Apr 15, 2004

    ### [New version of Data Access Application Block available](https://osherove.com/blog/2004/4/15/new-version-of-data-access-application-block-available.html)

- Apr 14, 2004

    ### [Code Readability and double negation - not uninteresting!](https://osherove.com/blog/2004/4/14/code-readability-and-double-negation-not-uninteresting.html)

- Apr 13, 2004

    ### [How to re-throw an exception correctly](https://osherove.com/blog/2004/4/13/how-to-re-throw-an-exception-correctly.html)

- Apr 13, 2004

    ### [Test Driven Development with Microsoft .NET - seems to be a good one](https://osherove.com/blog/2004/4/13/test-driven-development-with-microsoft-net-seems-to-be-a-goo.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/
