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

Manage PropertyGrid (property window)

1
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 problems with adding new properties, but when i try to remove one from the property grid it won't disappear.
I tried the following:

[ Browsable(false)]
public new bool Enabled
{
get { return false; }
set { throw new NotSupportedException(".... does not support...."); }

}

And this way it will disapear. But if you noticed I got the "Enable" property from a different control by inheritance (from PictureBox in my case).
My scope is to completely disable the property. But if I make it private it will not disapear from the property grid, plus if you have an instance of my class you are still able to access this property ( instace.Enable is accessible)....
I don't know why...

Please help me, to completely remove this property so no one will be able to see it or access it in any way (don't want to be accessed from the property grid or the InteliSens)

Thank you

ps. Does someone know how to set InteliSense Quick Info message ?
Jan 23 '08 #1
0 833

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Terry | last post by:
I have a very basic program, but for some reason I can't get it to behave properly. What I want is a basic form with a TabControl that fills the entire form. The tab control should have 4 tabs...
1
by: James Divine | last post by:
Greetings all, I am using a PropertyGrid control in my application and I'm having trouble finding documentation on it. I have my basic PG built and can add Properties of standard types (int,...
2
by: Mevar81 | last post by:
Hi to everybody.I have a problem with the PropertyGrid control.I want to display not all the properties of a generic Control(Button,TextBox,ComboBox,ecc.).In general I don't want to display only...
3
by: Frank Rizzo | last post by:
I added a PropertyGrid control to my form and set its SelectedObject property to one of my objects which exposes a lot of properties of type System.Drawing.Color. The System.Drawing.Color display...
4
by: Alexander Wehrli | last post by:
Hi, Two questions about PropertyGrid: 1. How can I achieve that one value in a PropertyGrid is treated as a Password (like TextBox.PasswordChar behaviour) ? 2. If you edit a TabControl in...
2
by: Dave Wurtz | last post by:
All, Does anyone know how I can make the PropertyGrid control readonly? I want to display the PUBLIC properties of an object, but I don't want the user to be able to change them (they do need...
1
by: ANDRES BECERRA | last post by:
Herfried K. Wagner was kind enough to point me to the PropertyGrid control http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemwindowsformspropertygridclasstopic.asp I have found a few...
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
6
by: Steve Teeples | last post by:
Can someone show me an example of how to place a "CheckedListBox" property within a PropertyGrid? -- ----------- Thanks, Steve
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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: 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
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...

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.