ControlCollection sequence?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I have a number of controls within a Panel. If I do

For Each ctrl In PanelMain.Controls
MsgBox(ctrl.Name)
Next

The controls are not displayed in the sequence I would expect them to
be (top left to bottom right). The TabIndex properties are properly
set for my expected sequence, but they actually get references in the
reverse order. Is there any rhyme or reason behind how For Each works
and/or how can I get my For Each to go in the sequence I need? Ideas?
TIA... Steve

.



Relevant Pages

  • RE: TableAdapter.Update fails with missing parameter
    ... we can know the sequence of events. ... DataGridViewCellEventArgs e) ... famariy with winform controls event, and be able to help in such field. ... You can send feedback directly to my manager at: ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: ControlCollection sequence?
    ... > I have a number of controls within a Panel. ... > The controls are not displayed in the sequence I would expect them to ... All an IEnumerator is *required* ... Dim ctrl As Control ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Bridgeport MDI with Heidenhain TNC 145 help please
    ... somewhere inside the big box of controls on the right hand side? ... As the programme went through its sequences I realised the sequence ... started pops the over current trips on the motor starter which have to ...
    (uk.rec.models.engineering)
  • Re: Can someone explain these moves to me?
    ... > I had Fritz 8 playing itself at 40/120 controls and it made this ... > sequence of moves: ...
    (rec.games.chess.analysis)
  • Re: What does 4 of the minor mean in each of these auctions?
    ... It means "let's play clubs although if you have three hearts, ... Spades should show something, presumably controls. ... However, I agree this sequence, as well as the previous one, is ...
    (rec.games.bridge)