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

Threaded View

  1. #2
    Join Date
    Jan 2010
    Posts
    38

    Re: How to get the TEXT values Entered in Text boxes Dynamically.???

    Code:
            For Each ctl As Control In Me.Controls
                'if textbox
                If TypeOf ctl Is TextBox Then
                    'This assumes that all entries are string/text (Not dates, Numeric, Boolean etc.)
                    strData = ctl.Text.ToString()
                End If
            Next
    This snippet originally supplied by Cimperiali
    Last edited by ddclondon; February 18th, 2010 at 12:38 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

Featured