Click here to Skip to main content
15,889,876 members
Home / Discussions / C#
   

C#

 
AnswerRe: Please Can any one Help Pin
musefan14-Jan-09 1:46
musefan14-Jan-09 1:46 
AnswerRe: Please Can any one Help Pin
Colin Angus Mackay14-Jan-09 2:15
Colin Angus Mackay14-Jan-09 2:15 
AnswerRe: Please Can any one Help Pin
Member 284246814-Jan-09 2:53
Member 284246814-Jan-09 2:53 
GeneralRe: Please Can any one Help Pin
vaghelabhavesh14-Jan-09 8:58
vaghelabhavesh14-Jan-09 8:58 
Questionconstructing own tcp/ip header Pin
Member 458420114-Jan-09 0:59
Member 458420114-Jan-09 0:59 
AnswerRe: constructing own tcp/ip header Pin
Dave Kreskowiak14-Jan-09 3:39
mveDave Kreskowiak14-Jan-09 3:39 
Questionstoring Data from textbox created At runtime? Pin
developer.ravish14-Jan-09 0:53
developer.ravish14-Jan-09 0:53 
AnswerRe: storing Data from textbox created At runtime? Pin
Tom Deketelaere14-Jan-09 1:25
professionalTom Deketelaere14-Jan-09 1:25 
At first glance there are several things wrong with this code.

1: you create several textbox controls but you don't set there location, so unless 'PH1' is a tablelayoutpanel or flowlayoutpanel all your textbox's will be shown on top off each other.

2: why add a new eventhandler to button1 for every textbox you create.
If button1 is created at designtime you don't need to add an eventhandler to it in code.
If button1 is created at runtime (off which there is no code here) adding it only once should be enough.

3: as to your question, the way you wrote it here you have 2 options.
Having a array variable (global) and adding all your textbox's to this array, then in button click event iterate this array.
Or iterate all the controls in 'PH1', check if there type is of the type textbox and get the text that way.
GeneralRe: storing Data from textbox created At runtime? Pin
developer.ravish14-Jan-09 2:32
developer.ravish14-Jan-09 2:32 
GeneralRe: storing Data from textbox created At runtime? [modified] Pin
Tom Deketelaere14-Jan-09 2:44
professionalTom Deketelaere14-Jan-09 2:44 
GeneralRe: storing Data from textbox created At runtime? Pin
developer.ravish14-Jan-09 19:19
developer.ravish14-Jan-09 19:19 
GeneralRe: storing Data from textbox created At runtime? Pin
Tom Deketelaere14-Jan-09 20:53
professionalTom Deketelaere14-Jan-09 20:53 
GeneralRe: storing Data from textbox created At runtime? Pin
developer.ravish15-Jan-09 1:00
developer.ravish15-Jan-09 1:00 
GeneralRe: storing Data from textbox created At runtime? Pin
Tom Deketelaere15-Jan-09 1:30
professionalTom Deketelaere15-Jan-09 1:30 
GeneralRe: storing Data from textbox created At runtime? Pin
developer.ravish15-Jan-09 2:36
developer.ravish15-Jan-09 2:36 
Questionc# Pin
amcikaljaber14-Jan-09 0:01
amcikaljaber14-Jan-09 0:01 
AnswerRe: c# Pin
Eddy Vluggen14-Jan-09 0:11
professionalEddy Vluggen14-Jan-09 0:11 
AnswerRe: c# Pin
Tony Richards14-Jan-09 0:12
Tony Richards14-Jan-09 0:12 
AnswerRe: c# Pin
musefan14-Jan-09 0:13
musefan14-Jan-09 0:13 
AnswerRe: c# Pin
musefan14-Jan-09 0:25
musefan14-Jan-09 0:25 
GeneralRe: c# Pin
J4amieC14-Jan-09 1:10
J4amieC14-Jan-09 1:10 
AnswerRe: c# Pin
Colin Angus Mackay14-Jan-09 0:42
Colin Angus Mackay14-Jan-09 0:42 
AnswerRe: c# Pin
DaveyM6914-Jan-09 0:57
professionalDaveyM6914-Jan-09 0:57 
AnswerRe: c# Pin
Pete O'Hanlon14-Jan-09 1:28
mvePete O'Hanlon14-Jan-09 1:28 
AnswerRe: c# Pin
Christian Graus14-Jan-09 2:28
protectorChristian Graus14-Jan-09 2:28 

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.