Custom Control Ide Properties list (VB)

git

Member
Joined
May 9, 2003
Messages
12
Solved: Custom Control Ide Properties list

Hello,

Im trying to make a custom control.
This control Should have a property that acts as (for example) the label modifiers property in the VB.net ide.

[Broken External Image]:http://alpine.xs4all.nl/~hib/vb-ide-label-modifiers.JPG

currently i can only make something similair to this but not with mutiple propertie-values in one property.

Code:
  Private req As Boolean = False
    Public Property requierd() As Boolean
        Get
            Return req
        End Get
        Set(ByVal Value As Boolean)
            req = Value
        End Set
    End Property

annyone an idea how to do this..?

regards hilmar
 
Last edited by a moderator:
Solved: Custom properties list

thank you i was already lookin into that but i did forget something :( forgot to give it to the public property..

regards hilmar

--for the completion the code: --
Code:
    Comment: optioneel = optional in english but you cant use that because it is a reserved keyword
    Enum required_types
        Donothing = 0
        requierd = 1
        optioneel = 2
    End Enum

    Private req As required_types
    Public Property requierd() As required_types
        Get
            Return req
        End Get
        Set(ByVal Value As required_types)
            req = Value
        End Set
    End Property
 
Back
Top