Omer van Kloeten's .NET Zen

Programming is life, the rest is mere details

News

Note: This blog has moved to omervk.wordpress.com.

Omer van Kloeten's Facebook profile

Omer has been professionally developing applications over the past 8 years, both at the IDF’s IT corps and later at the Sela Technology Center, but has had the programming bug ever since he can remember himself.
As a senior developer at NuConomy, a leading web analytics and advertising startup, he leads a wide range of technologies for its flagship products.

Get Firefox


powered by Dapper 

.NET Resources

Articles :: CodeDom

Articles :: nGineer

Culture

Projects

Tag

Sometimes in a WinForm, you need to associate a bit of data with a UI control. Control.
Tag then becomes useful.

I'm sorry, but I disagree. It is my opinion that the Tag property should be buried as soon as possible.
Consider the next person in line to maintain your application. The Tag property is untyped and unnamed, and could cause so much confusion, that it's not worth it.
My solution? Created a derived class for the control and create a property for your information. In my opinion, it's more intuitive.

Comments

No Comments