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

Thread: Control

  1. #1
    Join Date
    Dec 1999
    Location
    KL, Malaysia
    Posts
    9

    Control

    Hi,
    How do I clear the TextBoxes in an ActiveX Control
    in a smarter way rather than clear it one by one.

    Bye


  2. #2
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: Control

    Have a routine in your UserControl that does something like :


    Dim ctl as Control

    for Each ctl In UserControl.Controls
    If TypeOf ctl is TextBox then
    ctl.Text = ""
    End If
    next





    Chris Eastwood

    CodeGuru - the website for developers
    http://codeguru.developer.com/vb

  3. #3
    Join Date
    Dec 1999
    Location
    KL, Malaysia
    Posts
    9

    Re: Control

    Hi Chris,

    Just want to know how to plug the short routine into a Module so that I can call as and when I want.

    Bye,
    Ng Chee Tin


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