GetEnumerator method not present for ListBox.ObjectCollection

  • Thread starter Thread starter MikeB
  • Start date Start date
M

MikeB

The .NET 1.1 documentation declares that there is a GetEnumerator method
associated with the ListBox.ObjectCollection class.

When I try to implement this as follows:

IEnumerator posControls = ListBox.ObjectCollection.GetEnumerator();

The autocompletion mechanism shows only two methods: Equals() and
ReferenceEquals()

Any ideas why this is occuring?
 
just tried it on my vs 2003

IEnumerator ie = lstMessage.Items.GetEnumerator();

it works correctly actually.
 
You mentioned that you implemented it as follows:

IEnumerator ie = lstMessage.Items.GetEnumerator();

I was implementing it directly as:

IEnumerator posControls = ListBox.ObjectCollection.GetEnumerator();

Could you provide me the code where you declare "1stMessage" and
"Items"?

Thanks muchly
 
cud ya plz post some code and explain a little bit more about wat ya r goin
to achieve exactly.
thx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top