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

Suppressing Properties in Property Grid

If I have say

[Category("Cat1")]
public string Prop1 ....

public string Prop2 .....

How do I prevent Prop2 appearing in the PropertyGrid under 'Misc' ?
Aug 12 '06 #1
2 1328
[Browsable(false)]

public string Prop2

Michael

http://www.seeknsnatch.com

"Ian Semmel" <is***********@NOKUNKrocketcomp.com.auwrote in message
news:O7**************@TK2MSFTNGP03.phx.gbl...
If I have say

[Category("Cat1")]
public string Prop1 ....

public string Prop2 .....

How do I prevent Prop2 appearing in the PropertyGrid under 'Misc' ?

Aug 12 '06 #2
Thanks.

The help for attributes seems to be in a loop if you keep on following the links.

Michael wrote:
[Browsable(false)]

public string Prop2

Michael

http://www.seeknsnatch.com

"Ian Semmel" <is***********@NOKUNKrocketcomp.com.auwrote in message
news:O7**************@TK2MSFTNGP03.phx.gbl...
>>If I have say

[Category("Cat1")]
public string Prop1 ....

public string Prop2 .....

How do I prevent Prop2 appearing in the PropertyGrid under 'Misc' ?


Aug 13 '06 #3

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

Similar topics

3
by: Martin Montgomery | last post by:
I have, for example, a property called myProperty. I would like, when using a property grid to display the property name as "My Property". Is this possible. Is there an attribute etc Thank ...
2
by: Brian | last post by:
NOTE ALSO POSTED IN microsoft.public.dotnet.framework.aspnet.buildingcontrols I have solved most of my Server Control Collection property issues. I wrote an HTML page that describes all of the...
2
by: Cc | last post by:
how do I create a properties like windows in VS. rgds, charles
27
by: Just Me | last post by:
I made a Usercontrol that must have AutoScroll set to true when it is used. So I set it to True in the Load event. However the property still shows in the properties window when the control is...
0
by: Khawar | last post by:
Hi! I was experimenting with .Net property grid control. I found out in an article how to show the properties of Com Based objects using iCustomTypeDescriptor Interface. I tried it on MSHTML...
6
by: ajk | last post by:
Hi I was wondering how to show different properties in design and run-mode for a user control? Is it possible to do this when implementing the System.ComponentModel.ICustomTypeDescriptor...
2
by: R.A.F. | last post by:
Hi, I have a custom control in which i have a collection property named "Columns". this collection property add/remove column objects. in my Column class i have a property named Alignment...
17
by: David C. Ullrich | last post by:
Having a hard time phrasing this in the form of a question... The other day I saw a thread where someone asked about overrideable properties and nobody offered the advice that properties are...
3
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...
4
by: Nathan Sokalski | last post by:
I have a System.Web.UI.Control which has a property of type System.Drawing.Font. When editing this control in an *.aspx file, how do I assign a value to this property? If I recall correctly, the...
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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
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...

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.