properties not showing in properties window at design time

P

Peter

I created a usercontrol using vb but the properties will not show in
the properties pane however the properties show up in the intellisence
list.
I read several posts about this but got no clear answer, any help will
be higly appreciated.

Here's the code:

Public Class myclass

Inherits System.Web.UI.UserControl
Public m_objbcolor As Object = Color.Fuchsia


#Region " Web Form Designer Generated Code "

'left this out
#End Region

<System.ComponentModel.Browsable(True),
System.ComponentModel.Category("Misc")> _
Public Property bordercolor() As Object
Get
Return m_objbcolor
End Get
Set(ByVal Value As Object)
m_objbcolor = Value
End Set
End Property

Private Sub Page_Load(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MyBase.Load

'Put user code to initialize the page here

End Sub


End Class
 

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

Members online

No members online now.

Forum statistics

Threads
474,436
Messages
2,571,696
Members
48,796
Latest member
Greg L.
Top