467,140 Members | 1,339 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,140 developers. It's quick & easy.

Property in Property Bar

How do I make a property of a user control show up in the property window in the form designer?

Thanks
Scott
Nov 21 '05 #1
  • viewed: 1103
Share:
4 Replies
On Mon, 16 Aug 2004 14:54:48 -0500, Scott Meddows wrote:
How do I make a property of a user control show up in the property window in the form designer?

Thanks
Scott


Add the Browseable(True) attribute to the property. For example:

<Browsable(True)> _
Public Property Whatever As Integer
'property implementation here
End Property
--
Chris

dunawayc[AT]sbcglobal_lunchmeat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
Nov 21 '05 #2
* "Scott Meddows" <sc******************@tsged-removeme.com> scripsit:
How do I make a property of a user control show up in the property window in the form designer?


\\\
<Browsable(True)> _
Public Property...
...
End Property
///

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #3
Thanks a lot!

For bonus points, can I just as easily put it into it's own group?

"Chris Dunaway" <"dunawayc[[at]_lunchmeat_sbcglobal[dot]]net"> wrote in message news:9i****************************@40tude.net...
On Mon, 16 Aug 2004 14:54:48 -0500, Scott Meddows wrote:
How do I make a property of a user control show up in the property window in the form designer?

Thanks
Scott


Add the Browseable(True) attribute to the property. For example:

<Browsable(True)> _
Public Property Whatever As Integer
'property implementation here
End Property
--
Chris

dunawayc[AT]sbcglobal_lunchmeat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.

Nov 21 '05 #4
On Mon, 16 Aug 2004 18:37:50 -0500, Scott Meddows wrote:
For bonus points, can I just as easily put it into it's own group?


Yes, just use the Category attribute. And before you ask, YES you can also
have a description appear in the help pane of the PropertyGrid:

<Browsable(True), _
Category("Category Name"), _
Description("This is the help text for this property")> _
Public Property Whatever As Integer
'...
End Property

--
Chris

dunawayc[AT]sbcglobal_lunchmeat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Edward Diener | last post: by
3 posts views Thread by Marty McFly | last post: by
reply views Thread by Memfis | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.