Click to See Complete Forum and Search --> : how to make public properties appear in property window (custom controls)


Rob Teixeira
01-11-2002, 02:20 PM
You need to attach the BrowsableAttribute if I'm not mistaken.

-Rob

"Jeff" <jfischman@earthlink.net> wrote:
>can't seem to get properties declared public to show in the property window
>(beta-2)
>any steps necessary (attributes, etc) or am I missiong something
>thanks
>Jeff
>
>

Jeff
01-11-2002, 03:01 PM
can't seem to get properties declared public to show in the property window
(beta-2)
any steps necessary (attributes, etc) or am I missiong something
thanks
Jeff

Jeff Rhodes
01-12-2002, 11:13 AM
Hi Jeff,

Are you sure that they are not just in the Miscellaneous category? If you
want to specificy where they are, you need to set the Category attribute and
Import System.ComponentModel. Here's a small example:

Option Explicit On
Option Strict On
Imports System.ComponentModel

Public Class plattePicture
Inherits System.Windows.Forms.ContainerControl

' Windows Designer Code Here

<Description("Select True to have the picture resize based on the Background
Image."), _
Category("Extended"), Bindable(True), DefaultValue(True)> _
Public Property AutoResize() As Boolean
Get
Return c_autoResize
End Get
Set(ByVal Value As Boolean)
c_autoResize = Value
Call resizePicture()
End Set
End Property

' Other code here

End Class

Hope this is helpful.

--
Jeff Rhodes
Platte Canyon Multimedia Software Corporation


"Jeff" <jfischman@earthlink.net> wrote in message
news:3c3f35b9$1@147.208.176.211...
> can't seem to get properties declared public to show in the property
window
> (beta-2)
> any steps necessary (attributes, etc) or am I missiong something
> thanks
> Jeff
>
>

Jeff
01-13-2002, 09:51 PM
It seems you have to restart the environment before they show up in the
property window
thanks
Jeff
"Jeff" <jfischman@earthlink.net> wrote in message
news:3c3f35b9$1@147.208.176.211...
> can't seem to get properties declared public to show in the property
window
> (beta-2)
> any steps necessary (attributes, etc) or am I missiong something
> thanks
> Jeff
>
>