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

Hide property in Collection Editor

Hi

I have developed a custom webcontrol like a Table (A) with a rows collection
property (collection derived from CollectionBase) where I put one or more
custom webcontrol (B).
I need to hide some public property on controls (A) & (B) when in Design
Mode.
For the control (A) I have create class derived from ControlDesigner, I have
override the PostFilterProperties method typing inside some code for
removing the properties from properties dictionary, and after I have set
Designer attribute on class declaration for the control (A) and this work
fine. (see source code)
For the control (B) I try to make same technique but this don't work on
CollectionEditor form.
Plwase if some one have some sample code to do this, please reply to me.

Thanks in advance

Simon.

--------------------------------------------

public class Control_A_Designer : ControlDesigner
{
public Control_A_Designer()
: base()
{
}

protected override void PostFilterProperties( IDictionary properties)
{
properties.Remove( "BackColor");
base.PostFilterProperties( properties);
}

}
[
Designer( "Test.Control_A_Designer, Test", typeof( IDesigner)),
]
public class Control_A : WebControl
{
...
...
}

Nov 19 '05 #1
0 1088

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

Similar topics

2
by: Balamurukan | last post by:
How to retrive property values from our own property window
3
by: Shimon Sim | last post by:
I have control. One of the properties is implemented as StringCollection. I didn't use any Editor attribute for it. During Design time system shows dialog similar to Items in DropDownList but Add...
3
by: JES | last post by:
Hello, I'm trying to work through "Teach Yourself More Visual Basic .NET in 21 Days" and have come across something that I can't figure out. An example in the book for creating toolbars and...
6
by: Altman | last post by:
I would like to use an indexed property to access my private array of user controls. If I don't use an indexed property, the property will show up in my Properties Window during development. Is...
1
by: Friskusen | last post by:
I have (almost) added a simple Toolbar custom control to my control library. The Items on the toolbar are implemented in a class named ToolbarItem. I also use a class ToolbarItemCollection to...
11
by: jimstruckster | last post by:
I have a table with 10 rows, I want all rows except for the first to be hidden when the page first opens up. If the user puts a value in a text box in the first row then I want the second row to...
0
by: --== Alain ==-- | last post by:
Hi, I would like to re-create the same behavior as we can find on ListView control property when you want to add a new column. Basically, i need : 1. to create a published property which will...
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...
2
by: michelqa | last post by:
Hi, I'm trying to display a list of string in the string collection editor just like the "items" property of an ListBox in VS IDE.... I can find many examples on the net but I cant find any...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.