CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Text

  1. #1
    Join Date
    Oct 2001
    Posts
    1

    Text

    Hallo
    I want to know if i can set al the txt.boxes and combobox with " " nothing in it in a simple way.
    Tnx


  2. #2
    Join Date
    Sep 2001
    Location
    IL, USA
    Posts
    1,090

    Re: Text

    For TextBoxes set the Text property to "". Ex: TextBox1.Text="". For a ComboBox use the Clear method. Ex: Combo1.Clear.


  3. #3
    Join Date
    Jan 2000
    Location
    Saskatchewan, Canada
    Posts
    595

    Re: Text

    Dim ctl As Control
    For Each ctl In Controls
    If TypeOf ctl Is TextBox Then
    ctl.Text = ""
    End If
    If TypeOf ctl Is ComboBox Then
    ctl.Clear
    End If
    Next


    David Paulson


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

Featured