Custom control , custom properties
-
Hey everyone , i am working on a custom control, i was wondering how could i make a property which acts like a list so you could add a list of integers or strings to it through the designer. for example when you add items to a combobox you got a "..." button near items in the designer and when you click it you can add a list of items through the designer , i was wondering how could i achieve that. thank you for your time.
Net
-
Hey everyone , i am working on a custom control, i was wondering how could i make a property which acts like a list so you could add a list of integers or strings to it through the designer. for example when you add items to a combobox you got a "..." button near items in the designer and when you click it you can add a list of items through the designer , i was wondering how could i achieve that. thank you for your time.
Net
For every thing (turn, turn) there is a datatype, and a
UITypeEditor
for every editing-purpose, under Heaven. Add a reference to "System.Design" and "System.Drawing.Design".Imports System.Windows.Forms
Imports System.Drawing.Design
Imports System.ComponentModel
Imports System.ComponentModel.DesignPublic Class UserControl1
Private mMyText As String <Editor(GetType(MultilineStringEditor), GetType(Drawing.Design.UITypeEditor))> \_ Public Property MyText() As String Get Return mMyText End Get Set(ByVal value As String) mMyText = value End Set End Property
End Class
Happy Programming!
I are troll :)
modified on Sunday, March 15, 2009 8:26 AM