我有一个抽象用户控件(basemodule),它有一个我计划使用位比较来确定该模块支持的导出类型的属性。在一个从basemodule派生的模块的设计器中,我得到了一个组合框,它能够只选择一个值(HTML、XML等)。我希望看到一个下拉的选中列表框,这样我就可以选择我想要的值。
如何在VS2008内部完成此任务?我见过其他属性支持这个。请参考下面的代码,以更好地解释我在上面问得不好的问题中的意思。
Public Class ExportTypes
Public Enum ExportType
Html = 1
Xml = 2
Xls = 4
Txt = 8
Pdf = 16
Rtf = 32
End Enum
End Class
Public Class baseModule
Private _SupportedExportTypes As ExportType = 0
Public Property SupportedExportTypes() As ExportType
Get
Return _SupportedExportTypes
End Get
Set(ByVal Value As ExportType)
_SupportedExportTypes = Value
End Set
End Property
End Class