473,405 Members | 2,272 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,405 software developers and data experts.

Property grid question, PLEASE HELP

I have made my own control which inherits from UserControl. Within my
application i am using the propertygrid control to display my controls
properties, however i would like to remove properties like backcolor,
language, cursor, font etc. I know i can add the attribute
[Browsable(false)] but this can be added to properties u have made yourself,
the backcolor and cursor etc properties dont show up as they are inherited
so how can i remove them from showing up in the property grid? Thanks in
advance.
Nov 15 '05 #1
1 1118
> I have made my own control which inherits from UserControl. Within my
application i am using the propertygrid control to display my controls
properties, however i would like to remove properties like backcolor,
language, cursor, font etc. I know i can add the attribute
[Browsable(false)] but this can be added to properties u have made yourself, the backcolor and cursor etc properties dont show up as they are inherited
so how can i remove them from showing up in the property grid? Thanks in
advance.


You can override the properties in the base class and then use the
[Browsable(false)] attribute. For example:

[Browsable(false)]
public override string Text
{
get { return base.Text; }
set { base.Text = value; }
}

Regards,
Kevin McNeish
..NET /C# MVP
Chief Software Architect, Mere Mortals .NET Framework
www.oakleafsd.com

Nov 15 '05 #2

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

Similar topics

0
by: Mark | last post by:
Greetings all, I am new to VB.net. I am trying to use the PropertyGrid Control to display database schema. So far so good. The property grid control displays the database field properties in...
0
by: Mark | last post by:
Greetings. I am trying to use the PropertyGrid Control to display database schema. So far so good. The property grid control displays the database field properties in the property grid. My...
4
by: Ananth | last post by:
I would like to know if we can enter properties (name-value pairs) dynamically into a property grid object using C#. Also is it possible to have the text in the property grid (within the indiidual...
4
by: z. f. | last post by:
Hi, I'm having an aspx page with a server form. i have a grid with a delete button and below the grid, another area with inputs for inserting new values and an "add" button for submiting the...
7
by: siddhiash | last post by:
Hi Friends I want to add PasswordChar Property which shows ****** for string which I type in PropertyGrid Control. Regards, Siddharth
2
by: Mark Collard | last post by:
I've noticed that when you add a ToolTip component to a Form (or UserControl) the other controls on the form display a property in the property grid called "ToolTip on toolTip1", so you can set the...
0
by: Spoook | last post by:
Hi, I am trying to manage (add, remove) properties within the property grid (or window) in VS 2005 c# , but I can't do it. I read many forums, but none of them actually works. I don't have any...
2
by: dwillis | last post by:
First let me tell you i'm using vb.net 05 so please do not post any other language types thanks. On to the story. I'm using a custom class thatl lets each property get/set data from an INI file and...
1
by: moondaddy | last post by:
I have a group of elements inside a grid and want to align them along the left side of the grid. I also want have this group centered vertically and the xaml below demonstrates the appearance want...
1
by: asharda | last post by:
I have a custom property grid. I am using custom property grid as I do not want the error messages that the propertygrid shows when abphabets are entered in interger fields. The custom property...
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
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
marktang
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,...
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,...
0
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...
0
tracyyun
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...
0
agi2029
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,...
0
isladogs
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...

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.