Results 1 to 2 of 2

Thread: Where is the Procedure Attrbitutes Dialog in VB.NET? (RESOLVED)

  1. #1

    Thread Starter
    Addicted Member VB6Coder's Avatar
    Join Date
    Apr 2001
    Location
    Northampton, UK
    Posts
    185

    Question Where is the Procedure Attrbitutes Dialog in VB.NET? (RESOLVED)

    I'm creating a usercontrol in VB.NET. I want to categorize the properties I have added to the usercontrol. At the moment they are all appearing in Misc. I used to be able to do this by setting the Property Category in the Procedure Attributes dialog in VB 6.0. How it is done in VB.NET?

    Thanks in advance
    Last edited by VB6Coder; Jul 25th, 2003 at 08:52 AM.

  2. #2

    Thread Starter
    Addicted Member VB6Coder's Avatar
    Join Date
    Apr 2001
    Location
    Northampton, UK
    Posts
    185

    Talking

    Figured it out. You have to use a DescriptionAttribute and a CategoryAttribute.

    Here's an example:

    Code:
    Imports System.ComponentModel
    
    Public Class MyUserControl
    
        Inherits System.Windows.Forms.UserControl
    
    .
    .
    .
    
        <Description("The current date value for this control"), Category("Behavior")> _
        Public Property Value() As Date
            Get
                Return mdteValue
            End Get
            Set(ByVal pdteValue As Date)
                mdteValue = pdteValue
            End Set
        End Property
    
    End Class

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width