Results 1 to 8 of 8

Thread: Iterating forms? [given up. unsolved]

Threaded View

  1. #1

    Thread Starter
    Fanatic Member BrianHawley's Avatar
    Join Date
    Aug 2001
    Location
    Saudi Arabia
    Posts
    796

    Iterating forms? [given up. unsolved]

    Anybody know how to iterate forms?

    In VB6 it would be something like:

    VB Code:
    1. 'Do each form
    2.   For i = 0 To Forms.Count - 1
    3.         Forms(i).Caption = "Got it!"
    4.   Next i

    In C#?

    Code:
      foreach (Form f in ?????????????)
      {
        f.Text="Got it!"
      }
    I'm guessing it must be something easy and trivial, but I can't seem to get anyting to work.
    Last edited by BrianHawley; Apr 25th, 2002 at 05:49 AM.
    Brian
    (Fighting with the RightToLeft bugs in VS 2005)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width