Results 1 to 13 of 13

Thread: cleanning all textboxes on a form with a single code block (Resolved)

Threaded View

  1. #1

    Thread Starter
    Frenzied Member maged's Avatar
    Join Date
    Nov 2002
    Location
    Egypt
    Posts
    1,040

    cleanning all textboxes on a form with a single code block (Resolved)

    hi all,

    I used to use this segment in VB6 to clear all textboxes on a form, but it seems to have difficulties running on VB.Net

    VB Code:
    1. dim ctl as control
    2. for each ctl in controls
    3. if typeof ctl is textbox then ctl.text = ""
    4. next


    Can anyone advise me, what is the equivelant code in VB.Net

    \THX in Advance


    BST RGDS
    Last edited by maged; Jul 28th, 2004 at 05:19 AM.

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