Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

Solved: Custom Control Ide Properties list

 

Hello,

 

I'm 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.

 

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.

 

 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

Edited by git
Posted

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: --

   'Comment: optioneel = optional in english but you can't 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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...