Solved

IEnumerator

Posted on 2007-11-18
4
394 Views
Last Modified: 2010-04-24
Could anyone tell me which is the correct form in VC++?

System::Collections::IEnumerator^ myEnumerator = groupBox2->Controls->GetEnumerator();

while ( myEnumerator->MoveNext()){
    CheckBox test =(CheckBox)myEnumerator->Current;
}
0
Comment
Question by:aureliuh
4 Comments
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 250 total points
ID: 20308144
System::Collections::IEnumerator* myEnumerator = groupBox2->Controls-->GetEnumerator();
while (myEnumerator->MoveNext())
{
    CheckBox *test = __try_cast<CheckBox *>(myEnumerator->Current);
}
0
 
LVL 1

Expert Comment

by:Computer101
ID: 20520479
Forced accept.

Computer101
EE Admin
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now