Custom UITypeEditor

  • Thread starter Thread starter Ahmed Hashish
  • Start date Start date
A

Ahmed Hashish

In building controls we need to create Custom UITypeEditor classes, most of
this classes (in my case) doing the same job, its used to support the
controls properties with a drop down list contains some string values.
My question is, can I summarize all of this classes in one class that takes
an array of string as a parameter and used for all controls properties?

Thanks
Ahmed
 
Ahmend,

Why don't you inherit UITypeEditor to create your own version of
UITypeEditor. you can have a constructor in your class take in array of
strings.

-jack
 
I already Inherit from the class UITypeEditor. I have a class
SS_DataFieldEditor inherits from UITypeEditor , but I don't know how can I
make the class SS_DataFieldEditor have parameter list also how could I pass
those parameters from my control specialy if the parameters are varied.

this a part from my code

Public Class SS_DataFieldEditor

Inherits UITypeEditor

......

End Class

Public Class SS

Inherits System.Windows.Forms.UserControl

<Category("SS_DataPropeties"), Editor(GetType(SS_DataFieldEditor),
GetType(UITypeEditor)), DefaultValue("")>_

Public Property SourceTable() As String

....

End Property

End Class

Ahmed
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top