Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 20th, 2006, 05:16 PM
Authorized User
 
Join Date: Sep 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Cycling through all text boxes

I've been programming for a while but am new to C#. I have a program with 16 text boxes and am hoping I can get all their results through a loop (or something similarly efficient) rather than have 16 lines of:

ResultArray[0] = TextBox1.Text;
ResultArray[1] = TextBox2.Text;
                   .
                   .
                   .
                  etc

The obvious probelm is of course the fact that the TextBox numbers are changing and hence could not be referenced in a loop.
Thanks for any help.
 
Old September 21st, 2006, 12:41 AM
Registered User
 
Join Date: Sep 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to yudi010
Default

¿ÉϧÎÒ²»»áÖÐÎÄ°¢
ÄѹÖÄãÃÇѧϰÕâ¸öÓÐÓÅÊÆ

 
Old September 21st, 2006, 12:43 AM
Registered User
 
Join Date: Sep 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to yudi010
Default

l am from china
l can't speak in English








Similar Threads
Thread Thread Starter Forum Replies Last Post
Rich Text Boxes speedlearner Pro VB 6 2 July 2nd, 2006 09:02 AM
Using integers with text boxes clojinted General .NET 1 February 19th, 2005 08:12 PM
HELP with text boxes on webpage rwheeleragco Javascript How-To 1 November 2nd, 2004 04:32 AM
Form Text Boxes mrideout BOOK: Beginning ASP.NET 1.0 8 September 3rd, 2004 12:43 PM
Re-population of text boxes Louisa VB.NET 2002/2003 Basics 3 March 16th, 2004 05:59 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.