Hi, NG!
Does anyone have any hint on how to get the PropertyGrid control to display
more user-friendly "property" names, i.e. names that contain spaces, just
the way the VS IDE does when you select a file in Solution Explorer to view
its properties ("Build Action", "Copy to Output Directory" etc)? How are
those strings displayed since they don't seem to be real property names as
they contain spaces? I'm trying to achieve this in C#...
Thanks in advance.
pax 5 5727
If you are trying to display properties for a class you control you can
implement the ICustomeTypeDescriptor interface found in the
System.ComponentModel namespace, override the GetProperties() and create
your own PropertyDescriptors overriding the DisplayName property.
Gabriel Lozano-Morán
MCSD .NET
Real Software http://www.realdn.net http://www.realsoftware.be
<pax> wrote in message news:ua****************@TK2MSFTNGP14.phx.gbl... Hi, NG! Does anyone have any hint on how to get the PropertyGrid control to
display more user-friendly "property" names, i.e. names that contain spaces, just the way the VS IDE does when you select a file in Solution Explorer to
view its properties ("Build Action", "Copy to Output Directory" etc)? How are those strings displayed since they don't seem to be real property names as they contain spaces? I'm trying to achieve this in C#...
Thanks in advance. pax
Thanks a lot, Gabriel. There's a lot of information in your swift reply, I
hope I'll be able to find my way through...
And yes, the class should be mine, I guess there would be nothing to expect
if it were not mine.
Thanks.
pax
"Gabriel Lozano-Morán" <gl*****@no-spam.org> wrote in message
news:OT**************@tk2msftngp13.phx.gbl... If you are trying to display properties for a class you control you can implement the ICustomeTypeDescriptor interface found in the System.ComponentModel namespace, override the GetProperties() and create your own PropertyDescriptors overriding the DisplayName property.
Gabriel Lozano-Morán MCSD .NET Real Software http://www.realdn.net http://www.realsoftware.be
<pax> wrote in message news:ua****************@TK2MSFTNGP14.phx.gbl... Hi, NG! Does anyone have any hint on how to get the PropertyGrid control to
display more user-friendly "property" names, i.e. names that contain spaces,
just the way the VS IDE does when you select a file in Solution Explorer to view its properties ("Build Action", "Copy to Output Directory" etc)? How are those strings displayed since they don't seem to be real property names
as they contain spaces? I'm trying to achieve this in C#...
Thanks in advance. pax
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: mrVithan |
last post by:
I create a user control object and show its properties through a propertygrid
object in my application. It is sure that there are 100 hundred of properties
inherited from...
|
by: Peter Verburgh |
last post by:
Hello,
I'm using PropertyGrid control to show the properties of an control.
There are standard properties for each usercontrol like "Cursor, Dock
,...ect"
I don't want to show this properties...
|
by: JJ L. |
last post by:
Hello.
I have a project that consists of nine different objects, each serving
their own purpose. In the past I have just created a form for each
one, and then whenever you call, say,...
|
by: X.W. |
last post by:
Hi group,
I have a class like this:
class Person
{
public uint Age
{
get{...}
set{...}
}
|
by: Benny Raymond |
last post by:
I'm working on a program that has a treeview, and each tree node
refrences a row in my database. I really like how the properties
section of the collections editor looks - is this a control that...
|
by: ljlevend |
last post by:
I am exposing a property as an expandable property in a PropertyGrid by
assigning a System.ComponentModel.TypeConverter attribute to the property.
Is there any way to have the PropertyGrid group...
|
by: Steve |
last post by:
I am using a property grid to display a classes properties, all is OK for
single value properties but i need to display a list of strings for the user
to select from and update the property value...
|
by: ippo |
last post by:
Hi all,
I have a silly problem with treeview. I'm using .NET 2.0. I need to
set the two properties treeNodeSrc - treeNodeTypeSrc at run time using
C#, but in the treeViews that I define, these two...
|
by: michelqa |
last post by:
Hi,
I have a form with a control..(a button for example). Then the
control properties are displayed in a propertyGrid control.
Is there any simple way to remove some unwanted properties from...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |