Hello,
I have a simple issue : a collection class MyItems , derived from
CollectionBase, an editor class MyItemsEditor derived from
CollectionEdito r, and a property DataItems of type MyItems, declared as :
[DesignerSeriali zationVisibilit y(DesignerSeria lizationVisibil ity.Content)]
[Editor(typeof(M yItemsEditor), typeof(UITypeEd itor))]
public MyItems DataItems{
get { return _DataItems; }
set { _DataItems = value; }
}
Compiled with VS2003 it works OK. When I switched to 2005B2, the
problem is that in PropertyGrid it doesn't show anymore the ellipsis
button only if I declare the EditorAttribute as it follows:
[Editor(typeof(M yItemsEditor), typeof(MyItemsE ditor))]
The problem is my MyItemsEditor has overriden the method
CreateNewItemTy pes, so I should be able to add more types of object to
MyItems (derived from the same base class). In 2003 is working ok, in VS
2005 B2 it is not working anymore.
Anybody has a clue ?
Regards,
DM 1 1794
"Daniel Mihaita" <co*******@hotm ail.com> wrote in message
news:OH******** ********@TK2MSF TNGP15.phx.gbl. .. Hello, I have a simple issue : a collection class MyItems , derived from CollectionBase, an editor class MyItemsEditor derived from CollectionEdito r, and a property DataItems of type MyItems, declared as :
[DesignerSeriali zationVisibilit y(DesignerSeria lizationVisibil ity.Content)] [Editor(typeof(M yItemsEditor), typeof(UITypeEd itor))] public MyItems DataItems{ get { return _DataItems; } set { _DataItems = value; } }
Compiled with VS2003 it works OK. When I switched to 2005B2, the problem is that in PropertyGrid it doesn't show anymore the ellipsis button only if I declare the EditorAttribute as it follows: [Editor(typeof(M yItemsEditor), typeof(MyItemsE ditor))]
The problem is my MyItemsEditor has overriden the method CreateNewItemTy pes, so I should be able to add more types of object to MyItems (derived from the same base class). In 2003 is working ok, in VS 2005 B2 it is not working anymore.
Anybody has a clue ?
Regards, DM
Please post to the Beta2 forum http://forums.microsoft.com/msdn/ , this NG
is for the released product only, you might also file an issue in http://lab.msdn.microsoft.com/produc...k/default.aspx
Willy. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: m. pollack |
last post by:
Hi all
I've been using the PropertyGrid to allow the user to edit a class object at runtime. The class object contains a custom strongly-typed collection, and I have written a subclass of CollectionEditor to manipulate it, using an EditorAttribute on the collection class to associate the collection with my custom Editor subclass. The Collection Editor has its own little PropertyGrid, which displays the properties of the selected member of the...
|
by: m. pollack |
last post by:
<I've reposted this here as it was slipping away over the horizon on the C# group
Hi all,
I've been writing an application that uses a class object (call it Element) that I need to expose to the user at runtime for editing. To do this, I've been using the PropertyGrid control. The Element object has a collection property that contains references to other Elements (its purpose is to allow the users to generate XML schemas at runtime, in...
|
by: m. pollack |
last post by:
Hi all
I've been writing an application that uses a class object (call it Element) that I need to expose to the user at runtime for editing. To do this, I've been using the PropertyGrid control. The Element object has a collection property that contains references to other Elements (its purpose is to allow the users to generate XML schemas at runtime, in which elements can be nested to arbitrary depth). The PropertyGrid control opens an...
|
by: m. pollack |
last post by:
<I've reposted this as it was slipping away over the horizon
Hi all,
I've been writing an application that uses a class object (call it Element) that I need to expose to the user at runtime for editing. To do this, I've been using the PropertyGrid control. The Element object has a collection property that contains references to other Elements (its purpose is to allow the users to generate XML schemas at runtime, in which elements can be...
|
by: juststarter |
last post by:
Hello all,
here is my problem. I am using a property grid control (in a vb.net 2003
project) in which two properties are exposed : "editorStyle" and "events".
The first property is used to select one of a series of web controls. The
second one opens a collectioneditor which also exposes two properties :
"event" and "command". The "event" property is a combobox that is filled with
the events of the control that was selected in the...
| |
by: Andreas |
last post by:
Hi!
I'm using a custom collection with custom items to be edited with a custom
CollectionEditor. This set of functionality is to be a part of a plugin for
a SharpDevelop-based application.
The strange thing now is that my derived CollectionEditor's SetItems method
is called when testing the collection editing within a small test
application,
but is NOT called when tested from within the SharpDevelop environment.
Thus whenever I add...
|
by: Henry J. |
last post by:
Has anybody run into this index out range exception when opening and
then closing a collectionEditor from within a PropertyGrid?
I use PropertyGrid to edit configurations in my application. One of
the fields is a collection. I can expand or collapse the collection in
the PropertyGrid fine. However,if I open the CollectionEditor
associated with the collection, do nothing, and just close it, I get
an index out of range error. Note...
|
by: Bardo |
last post by:
Hi all,
I am having an issue with a custom CollectionEditor. My scenario is as
follows:
I have a base type TypeA. I also have a TypeACollection. The TypeACollection
has an Editor attribute of TypeACollectionEditor. This collection editor
derives from the framework CollectionEditor, passing TypeACollection in the
constructor to indicate which type it deals with.
I then have TypeB, which derives from TypeA, but adds specific
|
by: colin |
last post by:
Hi,
I have my property editor wich uses the pop up
collection editor for arrays etc,
but i have had to use a generic wrapper for the
elements in some types of collections.
although the editing actually works well,
and I can set the name ok in the primary property editor,
this makes a mess of the type name displayed in the pop up colection editor,
is there any way to change this ?
|
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,...
|
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...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
|
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();...
|
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
| |
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...
| |