473,659 Members | 3,605 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"Object collection editor"

Nak
Hi there,

I am trying to make a collection that will work in the "Object
collection editor" dialog. I have implimeneted ICollection, IList and
IEnumerable and now I have an "unnamed" collection, so the collection just
contains "objects". I would like it to contain my own objects "myItem" so
that I can edit the individual properties via the dialog but when I change
the types in the class from object to "myItem" it breaks the interface
compatability. Has anyone any ideas on how I can implement a named
collection for this use? Thanks in advance.

Nick.
Nov 19 '05 #1
3 2726
Nak
Oh, I have just found out that I have to "inherit" from collectionbase. So
does that mean that my collections aren't strongly named as I have only
impliemented the interfaces?? Would I benefit from inheriting from
collection base on all accounts? Thanks in advance.

Nick.

"Nak" <a@a.com> wrote in message
news:u4******** ******@TK2MSFTN GP12.phx.gbl...
Hi there,

I am trying to make a collection that will work in the "Object
collection editor" dialog. I have implimeneted ICollection, IList and
IEnumerable and now I have an "unnamed" collection, so the collection just
contains "objects". I would like it to contain my own objects "myItem" so
that I can edit the individual properties via the dialog but when I change
the types in the class from object to "myItem" it breaks the interface
compatability. Has anyone any ideas on how I can implement a named
collection for this use? Thanks in advance.

Nick.

Nov 19 '05 #2
Cor
Nick,
Do you know that there is a walkthrough on MSDN "creating your own
collection class" there is that collectionbase mentioned too.
Just to help, I saw it when I was looking for the right name from the
distributed application walkthrough.
I have till now no knowledge about the subject but maybe I go look at that
walkthrough, it can be intresting.
Cor
Nov 19 '05 #3
Nak
Thanks Cor I'll go an take a look :-) Much appreciated.

Nick.

"Cor" <no*@non.com> wrote in message
news:3f******** **************@ reader20.wxs.nl ...
Nick,
Do you know that there is a walkthrough on MSDN "creating your own
collection class" there is that collectionbase mentioned too.
Just to help, I saw it when I was looking for the right name from the
distributed application walkthrough.
I have till now no knowledge about the subject but maybe I go look at that
walkthrough, it can be intresting.
Cor

Nov 19 '05 #4

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

Similar topics

24
6732
by: Hung Jung Lu | last post by:
Hi, Does anybody know where this term comes from? "First-class object" means "something passable as an argument in a function call", but I fail to see the connection with "object class" or with "first-class airplane ticket". I just find the name a bit strange. Also, if there are first-class objects, what would the second-class objects or economy/tourist class objects be? :)
2
13402
by: brazilnut52 | last post by:
I am going to outline the steps I go through to produce the problem. Hopefully this will help you understand the problem better I have created a simple COM DLL in .NET by using the COM class template and by setting output to a type library (DLL). All the object does is return a string value. At this point I have not checked the option to register for COM interop in Visual Studio So I go into Excel (where I want to use the object). Go to VB...
4
16286
by: Georges Heinesch | last post by:
Hi. This question might seem trivial, but I didn't find any solution. By error, I created some event for a subform (subfrmTest). Hence, an entry in the VBA editor list was made (Form_subfrmTest) and some code was inserted to it. So I deleted the code, but the entry in the VBA editor remained (Form_subfrmTest). I didn't find any mean to delete it. As I said already, the subform doesn't contain any code (any more).
5
2824
by: Robin Tucker | last post by:
Hiya, I'm using mshtml and the web browser control to embed an OLE object in my ..NET application. What I want to do is get a reference to the "object" embedded therein: The HTML looks something like this: <html>
18
28742
by: Microsoft | last post by:
When I try this in my code I alwas get an errormessage: "Object reference not set to an instance of an object" Dim g As System.Drawing.Graphics g.DrawString("Test", New Font("Arial", 12, FontStyle.Bold), Brushes.Black, 0, 0) Why is this? Marc
0
1379
by: Karim | last post by:
I have a datagrid with a collection of columns and the datagrid is populated as in the code below. The value of test = 3 rows which is correct. However I get an exception when the code hits the Databind line. When I removed all the columns and dg is left with <columns></columns>, I don't get an error. If there's any column in the collection no matter what column it is, the error comes back. All the datafield names correspond to the column...
0
1379
by: schneider | last post by:
Collection editor problems. I keep getting "Object does not match target type." I think it has something to do with the TypeConverter, because it work fine with-out it. I need the converter to format the designer output. Anyone know whats going on? I don't get any real errors...
2
1308
by: shawncraig | last post by:
I'm sure I'm just missing something here but is there a way to nest objects inside an object or a collection that functions like an object with properties BESIDES creating whole classes or making public variables? Private Sub Click() Dim x as SomeSortOfCollection msg box(x.Name & " " & x.Phone) End Sub
3
1648
by: toyaxxx | last post by:
Hello guys, I have hit a dead end in trying to solve this problem. The thing is, I can't run the the program here because it has to run on a server which is in another place. All I receive here is a logfile with exceptions that happens when they test the program on the server. I'm using VS2005, VB.NET, XP Pro, CDO 1.21 dll Anyway, this function Logs on and traverses through "Public Folders" until it finds a folder I'm looking for. I...
0
8428
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
8337
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
8851
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
8748
jinu1996
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...
0
7359
agi2029
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...
0
5650
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
4175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4335
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1739
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.