473,809 Members | 2,633 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 PostFilterPrope rties 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
CollectionEdito r form.
Plwase if some one have some sample code to do this, please reply to me.

Thanks in advance

Simon.

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

public class Control_A_Desig ner : ControlDesigner
{
public Control_A_Desig ner()
: base()
{
}

protected override void PostFilterPrope rties( IDictionary properties)
{
properties.Remo ve( "BackColor" );
base.PostFilter Properties( properties);
}

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

Nov 19 '05 #1
0 1118

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

Similar topics

2
2013
by: Balamurukan | last post by:
How to retrive property values from our own property window
3
4321
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 button throws an error "Constructor on type System.String not found.". I may understand this message - there are too many contractor and non of them takes string. But how can I fix the problem or may be use the editor similar to Font.Names...
3
1394
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 setting toolbar button properties shows that the toolbar button has a "itemdata" property. This property does not show up in my toolbarbutton collection editor and I can't seem to find any info in the help for this particular property. Does this...
6
1876
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 there a way to get this to show up in the properties window?
1
3857
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 manage ToolbarItems. The Toolbar control has a property Public ReadOnly Property Items() as ToolbarItemCollection This setup is very similar to the standard ListView control which uses a ColumnHeaderCollection to manage ColumnHeaders.
11
8087
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 display. If they put a value in the text box in the second row then display the third row etc. etc. etc. to 10 rows. I'm pretty new to javascript, so I'm not to sure where to start. Any help would be great, thanks a lot.
0
1104
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 allow user (by clicking on it) to open a property form where user can add new column data. 2. this property should be a collection (to allow not only 1 column but several).
2
4226
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 which use a custom property editor. when this property editor is not linked to this property,
2
7829
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 example like items property of a listbox... I mean the String collection editor with the text "Enter the strings in the collection (on per line)" Is anybody can point me to the right object to use to define my string
0
9721
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, 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...
0
9603
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,...
1
10387
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,...
0
10120
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7662
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 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...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5689
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4332
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
3
3015
bsmnconsultancy
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...

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.