473,767 Members | 1,579 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Design Time Collection

I am working on wraping some third party controls and I want my
wrappers to use the designer. I have run into the problem of my
collections not working properly in the designer.

public class ExplorerBar : Control, INavigationBar
{
....
[EditorAttribute (typeof(System. ComponentModel. Design.Collecti onEditor),
typeof(System.D rawing.Design.U ITypeEditor))]
public ExplorerBarGrou pCollection Groups
{
get
{
return mGroups;
}
}
....
}

public class ExplorerBarGrou pCollection : INavigationBarC ollection ...
public class ExploterBarGrou p: Component, INavigationGrou p ...

When I use the designer I see Groups in the properties with the (...)
drill button however it doesn't have (collection) as the value and
when I click on the drill it brings up the collection editor dialog
but the 'add' and 'remove' buttons are disabled on it.

If you have any suggestions, or ideas about what I am missing, they
would be greatly appreciated.
Thanks,
Adam
Nov 16 '05 #1
0 1083

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

Similar topics

3
1457
by: Yves Dhondt | last post by:
Hello, I've got the following UML design : C | A _____|______ B So 2 objects A and B are connected through a relation C. (For example an employment scheme : person A1 worked for company B1 at time C1, person
2
2760
by: SammyBar | last post by:
Hi, I'm trying to bind a custom collection class to a data grid, following the guidelines from the article http://msdn.microsoft.com/msdnmag/issues/05/08/CollectionsandDataBinding/default.aspx. The problem is the article is in VisualBasic. I already get the collection to be recognized as a Data Source by the IDE. It populated the DataGrid correctly from the fields on the items object of the collection, but I can't get the DataGrid to...
4
7296
by: emma middlebrook | last post by:
Hi Straight to the point - I don't understand why System.Array derives from IList (given the methods/properties actually on IList). When designing an interface you specify a contract. Deriving from an interface and only implementing some of it means something is wrong: either the interface specification is wrong e.g. not minimal or the derivation is wrong e.g. the type can't actually honour this contract.
3
1897
by: niyad | last post by:
hi On a form ive added my custom component (MyComponent) which has a property (IDs in the expample code) exposing a collection of int16. I see this property in the PropertyGrid and I dont have trouble adding items to the collection at design time (using standard CollectionEditor class). I can Add, remove items at design time, however all the items are lost after a compilation. public class MyComponent : Component{ Int16Collection...
7
3017
by: Shimon Sim | last post by:
I have a custom composite control I have following property
1
2568
by: Stephen | last post by:
I have a form with a ListBox and would like to set the DataSource property at design-time but I can't seem to declare any kind of variable that will show up in the list. I have tried a traditional array, ArrayList, Collection as public vars in the Form Class's Declarations section. Setting the DataSource property to any of these works fine at run time. I want to do it at design time because after I change the Collection, it doesn't...
4
6972
by: Stephen | last post by:
IN VB.NET I have a form with a ListBox and would like to set the DataSource property at design-time but I can't seem to declare any kind of variable that will show up in the list. I have tried a traditional array, ArrayList, Collection as public vars in the Form Class's Declarations section. Setting the DataSource property to any of these works fine at run time. I want to do it at design time because after I change the Collection, it...
13
7888
by: alex sparsky | last post by:
I have a custom collection in my c# winform ui control called Items. Items is a built in collection type that does not allow itself to be replace (you can't 'set' the itemscollection in the control). However, the contents of the Items collection is persisted through designtime. Currently this all works except for the following. When you bring up the custom collection editor and add new items then close the collection editor.
0
1163
by: AP Farszha | last post by:
Hello groovers, I have a component which i'm trying to add some design time support to. I wish to add design time support so that a readonly collection of ToolStripItems can be maintained via a collection editor however i only wish to expose the following interface to the design time editor. Also the editor that maintains the readonly collection can only add ToolStripItems that already exist on the parent form that contains the component...
8
5118
by: tomsiw | last post by:
Hello, I am trying to create a user control which allows the user to enter a collection of items at design-time. Code example: public class MyControl : System.Windows.Forms.UserControl { .... MyItem itemList;
0
9575
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
9407
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,...
0
10170
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9841
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
7384
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
6656
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();...
1
3931
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
2
3534
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2808
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.