By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,064 Members | 1,524 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,064 IT Pros & Developers. It's quick & easy.

Property in Property Bar

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
* "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

P: n/a
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

P: n/a
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.