Question regarding Windows Control Library and Properties
-
Hi, I am developing a windows control library in C# and I have to display the serial number of some cards that are connected to the system. I have written the code in the windows control library class that retieves all the data. Now inorder to make it show properly in the properties box in Visual Studio when I am using the control I had to write another class that is a TypeConverter namely StringConverter. so how does one take the serialnumber array which is just a string array in the windos control library class and give it to the StringConverter class? Any help would be greatly appreciated Thanks in advance
-
Hi, I am developing a windows control library in C# and I have to display the serial number of some cards that are connected to the system. I have written the code in the windows control library class that retieves all the data. Now inorder to make it show properly in the properties box in Visual Studio when I am using the control I had to write another class that is a TypeConverter namely StringConverter. so how does one take the serialnumber array which is just a string array in the windos control library class and give it to the StringConverter class? Any help would be greatly appreciated Thanks in advance
godspeed123 wrote:
so how does one take the serialnumber array which is just a string array in the windos control library class and give it to the StringConverter class?
You need to specify some attributes for the property to get the collection editor on VS IDE. Take a loot at this article[^] which explains how to set the collection property, It's an ASP.NET example, but same can be used for windows library.