Solved

IEnumerator

Posted on 2007-11-18
4
433 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Quiz: What Do These Organizations Have In Common?

Hint: Their teams ended up taking quizzes, too.

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

617 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