Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Question regarding Windows Control Library and Properties

Question regarding Windows Control Library and Properties

Scheduled Pinned Locked Moved C#
csharpquestionvisual-studiodata-structureshelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    godspeed123
    wrote on last edited by
    #1

    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

    N 1 Reply Last reply
    0
    • G godspeed123

      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

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      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.


      My Website | Ask smart questions

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups