473,386 Members | 1,621 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,386 software developers and data experts.

change display name attribute from inheritor?

I have a base class with a collection of objects. I want to change the
display name of that in my descendant classes. I tried this line:

base.Nodes.GetType().GetCustomAttributes(typeof(Di splayNameAttribute),
true).SetValue("Gates", 0);

but it's wrong. I don't need the type. I need the propertyInfo (I
guess) ?

I'd like to just make my own property in the descendant classes and
change the name that way, but that forces me to make Browsable(false)
in the base class. In other words, it forces me to have a base class
that I never display with the PropertyGrid.

Mar 2 '07 #1
0 2243

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

Similar topics

1
by: Alexander Stante | last post by:
Hello, I want to do the following. I have a function called display.set_mode() which returns an instance of Surface. I want to add some bound functions to this object therefore I thought to do...
3
by: Jason Lehman | last post by:
I want to depending on a parameter in the XML change wether the div should display or not. Do I have to repeat the whole block in two if containers with the style display:none and one with...
2
by: Isz | last post by:
Hi Group: I would like to know if it is possible to change the name of an attribute to something else. My setup is like this: I have serveral SQL tables that I nest and join so that it all...
7
by: Giacomo | last post by:
I work on a page structured like: <h2> ... </h2> <div ="div1" class="show"> ... </div> <h2> ... </h2> <div id="div2" class="show"> ... </div> <h2> ... </h2> <div id="div3" class="show">...
4
by: cathy | last post by:
Hi All, I am having problems displaying content relevant to the option selected in a drop-down menu. I have an xml document which is running content through Flash and I need to have the same...
2
by: Lorenzo Thurman | last post by:
I would like to have an element, a text string, change into a select when a mouseover occurs and then change back to text when a selection is made or when a mouse out occurs. I looked a t using...
2
by: dkl1 | last post by:
Hi, I have the following HTML code (for playing a WAV sound file): <OBJECT ID=vidCtrl_success CLASSID="CLSID:05589FA1-C356-11CE-BF01-00AA0055595A" STYLE="display:none" VIEWASTEXT> <PARAM...
5
by: MATTXtwo | last post by:
I have surf throught many site and found this... http://www.adobe.com/go/gn_home how to change an element attribute to other class attribute... I wonder......can we change class attribute to...
3
by: prao2005 | last post by:
Q) How to display all the records of a table using xsl? Solution applied --> Suppose a class "test" has an attribute "test1" which itself is a table. "test1" contains some a1, a2, a3...
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: 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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.