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 5746
If you are trying to display properties for a class you control you can
implement the ICustomeTypeDes criptor interface found in the
System.Componen tModel namespace, override the GetProperties() and create
your own PropertyDescrip tors 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******** ********@TK2MSF TNGP14.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******** ******@tk2msftn gp13.phx.gbl... If you are trying to display properties for a class you control you can implement the ICustomeTypeDes criptor interface found in the System.Componen tModel namespace, override the GetProperties() and create your own PropertyDescrip tors 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******** ********@TK2MSF TNGP14.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 System.Windows.Forms.UserControl and they are all showed on
the propertygrid. Is there a way i can hide all these inherited properties
and show only my user control's properties ?
|
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 in the Propertygrid control , but
i want only show m custom made properties.
How can i easy hide those 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, object.Display(), it would call
up the form associated with that object. This form only displays
information, it doesn't allow the user to edit any information. Is it
possible to find the properties of a certain object, and then loop
through creating labels...
|
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 is
available to use? I thought it was a datagrid, but I can't get the
datagrid to show up like the collections properties thing.
Any help would be awesome
thanks!
~benny
| |
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 the expanded items in
categories as is done with PropertyGrid.SourceObject's properties when
PropertyGrid.PropertySort = CategorizedAlphabetical?
Thank you,
Lance
|
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 based on the selection.
A Drop down list in the property grid would be ideal.
For instance - like the StartPosition property of a form in the IDE.
I think this would be a simple and often used procedure but i have not been
able to locate an...
|
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 properties don't
exist!!!
Do I need to import something more to use all the properties of the
treeview? Right now, I 've just installed .NET 2005
Thank you all
|
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 the
propertyGrid....removing the "AccessibleName" properties by example?
Any example about how to play with the PropertyDescriptorCollection to
remove some properties??
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |