Click here to Skip to main content
15,900,378 members
Home / Discussions / C#
   

C#

 
GeneralRe: Adding and Removing Form Controls Using Code Pin
Joseph Stanish21-May-07 4:42
Joseph Stanish21-May-07 4:42 
GeneralRe: Adding and Removing Form Controls Using Code Pin
Martin#21-May-07 4:51
Martin#21-May-07 4:51 
GeneralRe: Adding and Removing Form Controls Using Code Pin
Luc Pattyn21-May-07 8:50
sitebuilderLuc Pattyn21-May-07 8:50 
AnswerRe: Adding and Removing Form Controls Programatically Pin
Marc Clifton21-May-07 4:28
mvaMarc Clifton21-May-07 4:28 
GeneralRe: Adding and Removing Form Controls Programatically Pin
Joseph Stanish21-May-07 4:29
Joseph Stanish21-May-07 4:29 
GeneralRe: Adding and Removing Form Controls Programatically Pin
Martin#21-May-07 4:31
Martin#21-May-07 4:31 
GeneralRe: Adding and Removing Form Controls Programatically Pin
Joseph Stanish21-May-07 4:39
Joseph Stanish21-May-07 4:39 
GeneralRe: Adding and Removing Form Controls Programatically Pin
Martin#21-May-07 4:45
Martin#21-May-07 4:45 
Hello,
Joseph Stanish wrote:
here you are ... "Please"

by the way, you do not need to reply

No need to be ironic and/or rude!
Joseph Stanish wrote:
instead of searching the form, I am going to keep a list of added controls, I will then iterate through my own list to drop the correct controls.

Thats a very good Idea!
I would use an ArrayList to hold the instances of the TextBoxes.
I would also be carefull, when iterating over an Collection and Removing an item out of this Collection.
For that, I would Clone the ArrayList and iterate over the Clone, cast each object to TextBox (with "as"), do my validation, and remove it from the original Collection!

All the best,

Martin
GeneralRe: Adding and Removing Form Controls Programatically Pin
Marc Clifton21-May-07 5:05
mvaMarc Clifton21-May-07 5:05 
QuestionChange Locked property Pin
Tushar Mahajan21-May-07 3:17
Tushar Mahajan21-May-07 3:17 
AnswerRe: Change Locked property Pin
Manoj Kumar Rai21-May-07 3:38
professionalManoj Kumar Rai21-May-07 3:38 
GeneralRe: Change Locked property Pin
Tushar Mahajan21-May-07 3:46
Tushar Mahajan21-May-07 3:46 
GeneralRe: Change Locked property Pin
Martin#21-May-07 4:33
Martin#21-May-07 4:33 
GeneralRe: Change Locked property Pin
Tushar Mahajan21-May-07 18:55
Tushar Mahajan21-May-07 18:55 
AnswerRe: Change Locked property Pin
Martin#21-May-07 3:41
Martin#21-May-07 3:41 
QuestionApplication Error---Any help please?? Pin
Ntoki21-May-07 2:55
Ntoki21-May-07 2:55 
AnswerRe: Application Error---Any help please?? Pin
Guffa21-May-07 3:00
Guffa21-May-07 3:00 
QuestionHow to send Date as a DateTime Object?. Pin
pubududilena21-May-07 2:51
pubududilena21-May-07 2:51 
AnswerRe: How to send Date as a DateTime Object?. Pin
Manoj Kumar Rai21-May-07 3:00
professionalManoj Kumar Rai21-May-07 3:00 
GeneralRe: How to send Date as a DateTime Object?. Pin
pubududilena21-May-07 3:14
pubududilena21-May-07 3:14 
GeneralRe: How to send Date as a DateTime Object?. Pin
Manoj Kumar Rai21-May-07 3:26
professionalManoj Kumar Rai21-May-07 3:26 
GeneralRe: How to send Date as a DateTime Object?. Pin
pubududilena21-May-07 3:39
pubududilena21-May-07 3:39 
AnswerRe: How to send Date as a DateTime Object?. Pin
DoomedOne21-May-07 11:34
DoomedOne21-May-07 11:34 
QuestionInterface question Pin
groundzero11121-May-07 1:58
groundzero11121-May-07 1:58 
AnswerRe: Interface question Pin
Pete O'Hanlon21-May-07 2:12
mvePete O'Hanlon21-May-07 2:12 

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.