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# Group new properties

C# Group new properties

Scheduled Pinned Locked Moved C#
csharpquestion
5 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.
  • J Offline
    J Offline
    jojoba2010
    wrote on last edited by
    #1

    Hi World of CodeProject! I am writing a userControl(in C# coding) and I added some new Properties to it, Now my question is that : How can I group this properties ,(Same as .Net that group it properties for each control)

    D 1 Reply Last reply
    0
    • J jojoba2010

      Hi World of CodeProject! I am writing a userControl(in C# coding) and I added some new Properties to it, Now my question is that : How can I group this properties ,(Same as .Net that group it properties for each control)

      D Offline
      D Offline
      DaveyM69
      wrote on last edited by
      #2

      If you mean grouping them in the property grid then you can use the Component[^] attribute

      Dave
      Tip: Passing values between objects using events (C#) BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
      Why are you using VB6? Do you hate yourself? (Christian Graus)

      J 1 Reply Last reply
      0
      • D DaveyM69

        If you mean grouping them in the property grid then you can use the Component[^] attribute

        Dave
        Tip: Passing values between objects using events (C#) BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
        Why are you using VB6? Do you hate yourself? (Christian Graus)

        J Offline
        J Offline
        jojoba2010
        wrote on last edited by
        #3

        No I mean like Size it has to properties in it --->width,Height

        L D 2 Replies Last reply
        0
        • J jojoba2010

          No I mean like Size it has to properties in it --->width,Height

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          the Size property is a struct, i.e. a composite type. That's what causes its members to be grouped. :)

          Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


          I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
          [The QA section does it automatically now, I hope we soon get it on regular forums as well]


          1 Reply Last reply
          0
          • J jojoba2010

            No I mean like Size it has to properties in it --->width,Height

            D Offline
            D Offline
            DaveyM69
            wrote on last edited by
            #5

            This[^] isn't the best article I've ever done (I should really revisit it and improve it!) but it will show you how it's done.

            Dave
            Tip: Passing values between objects using events (C#) BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
            Why are you using VB6? Do you hate yourself? (Christian Graus)

            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