473,379 Members | 1,260 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Browsable protected attribute doesn't show in designer

DS
I've got a user control called SearchInline that has a few protected
properties, for example:
protected string SpName { get .. set.. }
I then create another user control called SearchAgent for example, which
inherits from SearchInline. Through the code I can access and modify the
SpName property (this.SpName = "foo";), but it does not show up in the forms
designer's property list (VS2003).

Even if I explicitly set the component model attributes
[Description("yada"), Category("Required"), Browsable(true)] in SearchInline
for the protected methods, they refuse to show up in the Forms Designer of
either SearchInline, or SearchAgent. If I change the access modifier to
public instead of protected they show up without a problem, but I don't want
them to be public. How can I get this to work (i.e. show the protected
attributes in the inherited control)?

Thanks in advance,
-Dan
Nov 17 '05 #1
0 1216

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Lénaïc Huard | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I've some namespace problems when defining default values for attributes. My problem seems to come from the fact that the attributes are...
28
by: Act | last post by:
Why is it suggested to not define data members as "protected"? Thanks for help!
4
by: james | last post by:
I cannot get my UserControl's browsable properties to show up in the designer properties panel. I have then public virtual bool TestProp { {get return testProp; } set { testProp = value; } } ...
4
by: Flix | last post by:
When I extend a Control and I want to hide a property at design time, I do: public class MyButton : Button { public new System.String Text { get{return base.Text;} set{base.Text=value;} }
0
by: Stephen Carson | last post by:
I cannot see a browsable property I have added in the Properties Window. Using C++ in Visual Studio .NET 2003 I have added a property to my managed class: public:
1
by: Beeeeeeeeeeeeves | last post by:
If I put the browsable attribute on a property of a component, it makes it appear in the properties browser for instances of that component. But does this only apply to properties, or can I do it...
3
by: Tom | last post by:
I'm using the PropertyGrid, and have it bound to a class object. Works fine - however, I have some properties that I want to show up on the grid (i.e. they are browsable) -YET- I don't want the...
0
by: Alli | last post by:
I have a web user control with a property that has the browsable attribute set to true, but property doesn't show up in the HTML design property window when I add the control to a web form. My...
17
by: Jeremy S. | last post by:
Just getting into OOP here... I remember reading somewhere that having protected and/or internal member variables is to generally be avoided or potentially a "bad thing" because having such...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.