By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,607 Members | 1,128 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,607 IT Pros & Developers. It's quick & easy.

Custom UITypeEditor

P: n/a
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

Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies

P: n/a
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

Nov 21 '05 #2

P: n/a
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

"Jack hu" <Jackhu@microsoft> wrote in message
news:QJ**************@TK2MSFTNGXA01.phx.gbl...
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

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.