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. C# Properties

C# Properties

Scheduled Pinned Locked Moved C#
csharpdata-structurestutorial
3 Posts 3 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.
  • I Offline
    I Offline
    IceFear
    wrote on last edited by
    #1

    How to make a property look like a list without being an ENUM or BOOL I.E --> using a dynamically allocated array as a property and viewing it as a drop down list - such as the TextAlign property in the TextBox

    A C 2 Replies Last reply
    0
    • I IceFear

      How to make a property look like a list without being an ENUM or BOOL I.E --> using a dynamically allocated array as a property and viewing it as a drop down list - such as the TextAlign property in the TextBox

      A Offline
      A Offline
      Alex Korchemniy
      wrote on last edited by
      #2

      Its xmas so i dont have much time... but off the top of my head i think its called UITypeEditor. Its a designer thing that you have to do. Google and you shall find. This posting is provided "AS IS" with no warranties, and confers no rights. Alex Korchemniy

      1 Reply Last reply
      0
      • I IceFear

        How to make a property look like a list without being an ENUM or BOOL I.E --> using a dynamically allocated array as a property and viewing it as a drop down list - such as the TextAlign property in the TextBox

        C Offline
        C Offline
        ChesterPoindexter
        wrote on last edited by
        #3

        You can overload the TypeConverter, StringConverter in your case to pass back a StandardCollection value that is an array of values as opposed to a string and it will seen as a drop down list.

        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