Solved

IEnumerator

Posted on 2007-11-18
4
405 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

920 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

13 Experts available now in Live!

Get 1:1 Help Now