Ok, I\'m writing a properties list box type control like the one in vb (ya know, the one where you set the properties for your controls at design time) but i dont really know much about collections so i was wondering exactly how would i go about doing this... \r\nBasically what i have is an Items property collection. \r\nSo, when I either open the collection editor, or use code, I need to have some variables when i add a new "Item". \r\nLike, \r\nData Type - Combobox: String, Boolean, Integer \r\nText - String \r\nValue - String \r\n \r\nSo basically what i need to know is just how to be able to add multiple data types to the collection.. I\'m really lost.. please fill me in on how to do this. I\'ve tried searching with not much luck.
Ok, I'm writing a properties list box type control like the one in vb (ya know, the one where you set the properties for your controls at design time) but i dont really know much about collections so i was wondering exactly how would i go about doing this...
Basically what i have is an Items property collection.
So, when I either open the collection editor, or use code, I need to have some variables when i add a new "Item".
Like,
Data Type - Combobox: String, Boolean, Integer
Text - String
Value - String
So basically what i need to know is just how to be able to add multiple data types to the collection.. I'm really lost.. please fill me in on how to do this. I've tried searching with not much luck.
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET. subscribe