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. Web Development
  3. ASP.NET
  4. Description of property in property window [modified]

Description of property in property window [modified]

Scheduled Pinned Locked Moved ASP.NET
csharpvisual-studiohelptutorialquestion
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.
  • N Offline
    N Offline
    Nitin1981
    wrote on last edited by
    #1

    Hi all! I want to show description of the property(of a user control) in the property dialog box in Visual Studio. I tried to use following code Text1 property is showing in the property box but but default value and its description are not there. Any idea to how to fix it? Bindable(True), DefaultValue("Nitin"), Description("Text value of the text box"), Category("Misc"), Browsable(True) _ 'Above line was not showing properly here so I remove < at the start & > at end Public Property Text1() As String Get Return TextBox1.Text End Get Set(ByVal value As String) TextBox1.Text = value End Set End Property Thanks

    E 1 Reply Last reply
    0
    • N Nitin1981

      Hi all! I want to show description of the property(of a user control) in the property dialog box in Visual Studio. I tried to use following code Text1 property is showing in the property box but but default value and its description are not there. Any idea to how to fix it? Bindable(True), DefaultValue("Nitin"), Description("Text value of the text box"), Category("Misc"), Browsable(True) _ 'Above line was not showing properly here so I remove < at the start & > at end Public Property Text1() As String Get Return TextBox1.Text End Get Set(ByVal value As String) TextBox1.Text = value End Set End Property Thanks

      E Offline
      E Offline
      e laj
      wrote on last edited by
      #2

      There is an attribute DisplayName you can use it to customize the text displayed in the property grid. Have fun!

      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