Click here to Skip to main content
15,881,204 members
Home / Discussions / C#
   

C#

 
QuestionRe: Menu focus Pin
Richard MacCutchan3-Mar-14 23:29
mveRichard MacCutchan3-Mar-14 23:29 
AnswerRe: Menu focus Pin
Bernhard Hiller4-Mar-14 2:11
Bernhard Hiller4-Mar-14 2:11 
QuestionRemove Controls Pin
Zeyad Jalil3-Mar-14 20:20
professionalZeyad Jalil3-Mar-14 20:20 
AnswerRe: Remove Controls Pin
BillWoodruff3-Mar-14 21:39
professionalBillWoodruff3-Mar-14 21:39 
GeneralRe: Remove Controls Pin
Zeyad Jalil3-Mar-14 22:54
professionalZeyad Jalil3-Mar-14 22:54 
AnswerRe: Remove Controls Pin
Simon_Whale3-Mar-14 23:24
Simon_Whale3-Mar-14 23:24 
GeneralRe: Remove Controls Pin
Zeyad Jalil4-Mar-14 0:41
professionalZeyad Jalil4-Mar-14 0:41 
AnswerRe: Remove Controls Pin
OriginalGriff3-Mar-14 23:54
mveOriginalGriff3-Mar-14 23:54 
To add to what the others said, you can't do that anyway.
You cannot modify a collection which is being used as the target of a foreach loop.
You should consider a for loop instead - and work backwards through it, not forwards - or construct a separate list of "removable" controls and remove them afterwards.
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

GeneralRe: Remove Controls Pin
GuyThiebaut4-Mar-14 3:51
professionalGuyThiebaut4-Mar-14 3:51 
GeneralRe: Remove Controls Pin
OriginalGriff4-Mar-14 4:33
mveOriginalGriff4-Mar-14 4:33 
GeneralRe: Remove Controls Pin
BillWoodruff4-Mar-14 14:45
professionalBillWoodruff4-Mar-14 14:45 
AnswerRe: Remove Controls Pin
Dave Kreskowiak4-Mar-14 3:40
mveDave Kreskowiak4-Mar-14 3:40 
AnswerUse a curtain! Pin
Ravi Bhavnani4-Mar-14 4:41
professionalRavi Bhavnani4-Mar-14 4:41 
AnswerRe: Remove Controls Pin
BillWoodruff4-Mar-14 14:57
professionalBillWoodruff4-Mar-14 14:57 
QuestionHow to use the GoF in project? Pin
wmikas3-Mar-14 15:22
wmikas3-Mar-14 15:22 
AnswerRe: How to use the GoF in project? Pin
BillWoodruff3-Mar-14 17:35
professionalBillWoodruff3-Mar-14 17:35 
GeneralRe: How to use the GoF in project? Pin
wmikas4-Mar-14 1:10
wmikas4-Mar-14 1:10 
AnswerRe: How to use the GoF in project? Pin
dan!sh 3-Mar-14 19:40
professional dan!sh 3-Mar-14 19:40 
GeneralRe: How to use the GoF in project? Pin
harold aptroot3-Mar-14 22:35
harold aptroot3-Mar-14 22:35 
AnswerRe: How to use the GoF in project? Pin
gkrannich3-Mar-14 22:58
gkrannich3-Mar-14 22:58 
AnswerRe: How to use the GoF in project? Pin
Jubayer Ahmed4-Mar-14 0:44
professionalJubayer Ahmed4-Mar-14 0:44 
AnswerRe: How to use the GoF in project? Pin
BobJanova4-Mar-14 6:06
BobJanova4-Mar-14 6:06 
QuestionDll References and Dependencies Pin
MarkB1233-Mar-14 7:58
MarkB1233-Mar-14 7:58 
AnswerRe: Dll References and Dependencies Pin
Richard Andrew x643-Mar-14 8:38
professionalRichard Andrew x643-Mar-14 8:38 
GeneralRe: Dll References and Dependencies Pin
MarkB1233-Mar-14 8:57
MarkB1233-Mar-14 8:57 

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.