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. Visual Basic
  4. Tags / Attributes ?

Tags / Attributes ?

Scheduled Pinned Locked Moved Visual Basic
questionasp-netcom
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.
  • X Offline
    X Offline
    Xaverian
    wrote on last edited by
    #1

    Ok, out of fear of getting flamed for a question that I should probably know the answer too, I'm going to post it anyways ... I read articles from time to time, like this one: http://www.codeproject.com/aspnet/CC\_MultiMediaControl.asp What are (I believe them to be attributes) before the declaration of the property, and what are they used for ... we never covered this in school, at least not yet. IE: _ _ _ Public Property ShowTracker() As Boolean Get Return mShowTracker End Get Set(ByVal value As Boolean) mShowTracker = value End Set End Property Cheers, Xaverian

    D 1 Reply Last reply
    0
    • X Xaverian

      Ok, out of fear of getting flamed for a question that I should probably know the answer too, I'm going to post it anyways ... I read articles from time to time, like this one: http://www.codeproject.com/aspnet/CC\_MultiMediaControl.asp What are (I believe them to be attributes) before the declaration of the property, and what are they used for ... we never covered this in school, at least not yet. IE: _ _ _ Public Property ShowTracker() As Boolean Get Return mShowTracker End Get Set(ByVal value As Boolean) mShowTracker = value End Set End Property Cheers, Xaverian

      D Offline
      D Offline
      Daniel Grunwald
      wrote on last edited by
      #2

      These attributes are for design time support on your user control - they control the way the property shows in Visual Studio's (or SharpDevelop's) property grid when you put the control on a form using the forms designer. Category: the category the property appears in (if sort by categories is active) Browsable: Whether the property is visible in the property grid. Description: The description shown below the property grid.

      X 1 Reply Last reply
      0
      • D Daniel Grunwald

        These attributes are for design time support on your user control - they control the way the property shows in Visual Studio's (or SharpDevelop's) property grid when you put the control on a form using the forms designer. Category: the category the property appears in (if sort by categories is active) Browsable: Whether the property is visible in the property grid. Description: The description shown below the property grid.

        X Offline
        X Offline
        Xaverian
        wrote on last edited by
        #3

        Thank you! I thought thats what they were, but wasn't sure, no one has ever explained it to me before. I can see where these can be usefull. Is there somewhere else that I can learn more about additional attributes that are available? I've seen other attributes used as well, especially the "" attribute. Thanks again!

        S 1 Reply Last reply
        0
        • X Xaverian

          Thank you! I thought thats what they were, but wasn't sure, no one has ever explained it to me before. I can see where these can be usefull. Is there somewhere else that I can learn more about additional attributes that are available? I've seen other attributes used as well, especially the "" attribute. Thanks again!

          S Offline
          S Offline
          SpartanSoft
          wrote on last edited by
          #4

          http://www.ondotnet.com/pub/a/dotnet/excerpt/prog_csharp_ch18/index.html?page=1[^] Reflection is key to understanding attributes.

          Christopher Pond Innovative Technology Solutions SpartanSoft.net.

          X 1 Reply Last reply
          0
          • S SpartanSoft

            http://www.ondotnet.com/pub/a/dotnet/excerpt/prog_csharp_ch18/index.html?page=1[^] Reflection is key to understanding attributes.

            Christopher Pond Innovative Technology Solutions SpartanSoft.net.

            X Offline
            X Offline
            Xaverian
            wrote on last edited by
            #5

            Thank you ... I can see why the old cliche' of "10 years to pro" so relates to programming ... there is so much to know! Thank you agian!

            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