Anybody know how to iterate forms?
In VB6 it would be something like:
VB Code:
'Do each form For i = 0 To Forms.Count - 1 Forms(i).Caption = "Got it!" Next i
In C#?
I'm guessing it must be something easy and trivial, but I can't seem to get anyting to work.Code:foreach (Form f in ?????????????) { f.Text="Got it!" }




Reply With Quote