CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: foamy

Search: Search took 0.03 seconds.

  1. Replies
    27
    Views
    24,117

    Re: For loop not iterating through a list box

    Then your design is flawed. You could, however, make sure that both lists have the same amount of items and then loop from 0 to that amount:




    int itemCount = listBox4.Items.Count;...
  2. Replies
    27
    Views
    24,117

    Re: For loop not iterating through a list box

    To explain what you're currently doing:



    for (int i = 0; i < numericUpDown2.Value; i++) //loop from 0 to the current value of the NumericUpDown control
    {
    listBox4.SetSelected(i, true);...
Results 1 to 2 of 2





Click Here to Expand Forum to Full Width

Featured