请问,关于自定义控件的属性的设置有关问题

请教,关于自定义控件的属性的设置问题
在vs中,自定义控件,新加的属性在设计器里都会放在属性栏目的杂项中,有没有什么办法让他不出现在杂项分类中而出现在其它的分类中?


还有,如果在设计器中拖用新建的这个控件的话,他的所有的属性都会出现在设计InitializeComponent方法中,有没有什么办法,让这些属性不显示呢? 很多控件的属性如果不修改默认值的,是不会出现在InitializeComponent方法中的




------解决方案--------------------
这个容易,在类上面添加Imports System.ComponentModel 引用
然后在属性上添加<Category("我的分类")> 属性

如下面
VB.NET code
    ''' <summary>
    ''' '设置边框颜色
    ''' </summary>
    ''' <value></value>
    ''' <returns></returns>
    ''' <remarks></remarks>
    <Category("我的分类")> Property BorderColor() As Color
        Get
            Return mborderColor
        End Get
        Set(ByVal value As Color)
            mborderColor = value
            Me.Invalidate()
        End Set
    End Property