You must Sign In to post a response.
  • Category: .NET

    Clear TextBox

    The forum thread has not been reviewed by Editors yet. Readers are advised to use their best judgement before accessing this thread.
    This thread will be reviewed shortly.
    If you think this thread contain inappropriate content, please report to webmaster.
    HOw can i clear multiple textboxes on a single click? Rember Textboxes are in a group box.
  • #40551
    on click the event fires
    textbox1.text=""
    textbox2.text=""
    .
    .
    .

  • #40554
    function clear(id as string)
    id.clear
    end function


    for i =1 to 50
    clear(pass the text box id)
    next

  • #40661
    hi u can write a function for clear text boxes

    like

    Private Sub ClearTextBoxes()
    Textbox1.clear
    Textbox2.Clear
    ..
    ..
    ..
    ..
    End Sub

    after u can call this function in u r project any where

  • #125550
    dim obj as gropbox1
    dim ctrl as control
    foreach ctrl in obj.controls
    if typeof ctrl is textbox
    ctrl.tex =""

    end if

    next


This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.