Click here to Skip to main content
15,890,845 members
Home / Discussions / C#
   

C#

 
GeneralRe: Need to parse GUID Pin
JohnQuar17-Aug-09 8:07
JohnQuar17-Aug-09 8:07 
GeneralRe: Need to parse GUID Pin
PIEBALDconsult7-Aug-09 8:11
mvePIEBALDconsult7-Aug-09 8:11 
GeneralRe: Need to parse GUID Pin
JohnQuar17-Aug-09 8:16
JohnQuar17-Aug-09 8:16 
GeneralRe: Need to parse GUID Pin
PIEBALDconsult7-Aug-09 8:28
mvePIEBALDconsult7-Aug-09 8:28 
QuestionLooping through multiple textboxes to retrive data using a variable Pin
msg551217-Aug-09 6:59
msg551217-Aug-09 6:59 
AnswerRe: Looping through multiple textboxes to retrive data using a variable Pin
Muhammad Mazhar7-Aug-09 7:11
Muhammad Mazhar7-Aug-09 7:11 
AnswerRe: Looping through multiple textboxes to retrive data using a variable Pin
Ennis Ray Lynch, Jr.7-Aug-09 7:14
Ennis Ray Lynch, Jr.7-Aug-09 7:14 
AnswerRe: Looping through multiple textboxes to retrive data using a variable Pin
Luc Pattyn7-Aug-09 7:23
sitebuilderLuc Pattyn7-Aug-09 7:23 
Hi,

two easy ways:

1.
use a List<TextBox> textboxes to which you add the textboxes of interest, then a simple foreach(TextBox tb in textboxes) will do the job.

2.
if you want to enumerate ALL the textboxes of a Form, and they all are at the top level of that form, you could do:
foreach (Control c in this.Controls) {
    TextBox tb=c as TextBox;
    // now skip controls that aren't textboxes:
    if (tb!=null) { ... do something to tb ... }
}


Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

QuestionHow can I manage then number of applications instances running at the same time over a network? Pin
_awatts7-Aug-09 6:33
_awatts7-Aug-09 6:33 
AnswerRe: How can I manage then number of applications instances running at the same time over a network? Pin
Ennis Ray Lynch, Jr.7-Aug-09 6:46
Ennis Ray Lynch, Jr.7-Aug-09 6:46 
Questionproblem when to actualize the controls of a form Pin
Harry6667-Aug-09 4:52
Harry6667-Aug-09 4:52 
AnswerRe: problem when to actualize the controls of a form Pin
Henry Minute7-Aug-09 16:02
Henry Minute7-Aug-09 16:02 
GeneralRe: problem when to actualize the controls of a form Pin
Harry6668-Aug-09 0:46
Harry6668-Aug-09 0:46 
GeneralRe: problem when to actualize the controls of a form Pin
Harry6668-Aug-09 1:11
Harry6668-Aug-09 1:11 
QuestionProblem when convert 50MB string values to Stream... Pin
spalanivel7-Aug-09 1:57
spalanivel7-Aug-09 1:57 
AnswerRe: Problem when convert 50MB string values to Stream... Pin
Keith Barrow7-Aug-09 2:30
professionalKeith Barrow7-Aug-09 2:30 
GeneralRe: Problem when convert 50MB string values to Stream... Pin
spalanivel7-Aug-09 2:46
spalanivel7-Aug-09 2:46 
GeneralTry this Pin
Ennis Ray Lynch, Jr.7-Aug-09 4:30
Ennis Ray Lynch, Jr.7-Aug-09 4:30 
GeneralRe: Problem when convert 50MB string values to Stream... Pin
harold aptroot7-Aug-09 5:23
harold aptroot7-Aug-09 5:23 
GeneralRe: Problem when convert 50MB string values to Stream... Pin
Ennis Ray Lynch, Jr.7-Aug-09 6:44
Ennis Ray Lynch, Jr.7-Aug-09 6:44 
GeneralRe: Problem when convert 50MB string values to Stream... Pin
harold aptroot7-Aug-09 6:59
harold aptroot7-Aug-09 6:59 
GeneralRe: Problem when convert 50MB string values to Stream... Pin
Ennis Ray Lynch, Jr.7-Aug-09 7:10
Ennis Ray Lynch, Jr.7-Aug-09 7:10 
GeneralRe: Problem when convert 50MB string values to Stream... Pin
harold aptroot7-Aug-09 7:26
harold aptroot7-Aug-09 7:26 
GeneralRe: Problem when convert 50MB string values to Stream... Pin
Ennis Ray Lynch, Jr.7-Aug-09 7:40
Ennis Ray Lynch, Jr.7-Aug-09 7:40 
GeneralRe: Problem when convert 50MB string values to Stream... Pin
harold aptroot7-Aug-09 8:10
harold aptroot7-Aug-09 8:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.