Click here to Skip to main content
15,891,136 members
Home / Discussions / C#
   

C#

 
GeneralRe: How can i disable temporarily warnings/error from the code? Pin
Kevin McFarlane11-Feb-06 12:20
Kevin McFarlane11-Feb-06 12:20 
AnswerRe: How can i disable temporarily warnings/error from the code? Pin
Wayne Phipps11-Feb-06 8:43
Wayne Phipps11-Feb-06 8:43 
AnswerRe: How can i disable temporarily warnings/error from the code? Pin
Dave Kreskowiak11-Feb-06 8:51
mveDave Kreskowiak11-Feb-06 8:51 
GeneralRe: How can i disable temporarily warnings/error from the code? Pin
e-laj11-Feb-06 11:59
e-laj11-Feb-06 11:59 
Questionenumeration was modified operation may not execute Pin
spirit_of_pak11-Feb-06 6:23
spirit_of_pak11-Feb-06 6:23 
AnswerRe: enumeration was modified operation may not execute Pin
Ravi Bhavnani11-Feb-06 6:38
professionalRavi Bhavnani11-Feb-06 6:38 
AnswerRe: enumeration was modified operation may not execute Pin
perlmunger11-Feb-06 6:45
perlmunger11-Feb-06 6:45 
GeneralRe: enumeration was modified operation may not execute Pin
Dave Kreskowiak11-Feb-06 8:46
mveDave Kreskowiak11-Feb-06 8:46 
perlmunger wrote:
foreach ( int i = 0; i < frmColl.Count; ++i )


This WILL cause an IndexOutOfRange exception. The solution is very easy, but not so obivous:
foreach ( int i = frmColl.Count; i >= 0; i-- )

Run the the loop in the other direction! Start at the end and work your way back to the front...

RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome


-- modified at 14:47 Saturday 11th February, 2006
GeneralRe: enumeration was modified operation may not execute Pin
perlmunger11-Feb-06 11:10
perlmunger11-Feb-06 11:10 
AnswerRe: enumeration was modified operation may not execute Pin
malharone11-Feb-06 7:31
malharone11-Feb-06 7:31 
GeneralRe: enumeration was modified operation may not execute Pin
Colin Angus Mackay11-Feb-06 13:41
Colin Angus Mackay11-Feb-06 13:41 
GeneralRe: enumeration was modified operation may not execute Pin
malharone11-Feb-06 18:14
malharone11-Feb-06 18:14 
GeneralRe: enumeration was modified operation may not execute Pin
Colin Angus Mackay12-Feb-06 1:34
Colin Angus Mackay12-Feb-06 1:34 
GeneralRe: enumeration was modified operation may not execute Pin
malharone12-Feb-06 5:27
malharone12-Feb-06 5:27 
GeneralRe: enumeration was modified operation may not execute Pin
spirit_of_pak12-Feb-06 17:28
spirit_of_pak12-Feb-06 17:28 
QuestionError Pin
NaNg1524111-Feb-06 3:54
NaNg1524111-Feb-06 3:54 
AnswerRe: Error Pin
perlmunger11-Feb-06 7:15
perlmunger11-Feb-06 7:15 
GeneralRe: Error Pin
NaNg1524111-Feb-06 8:13
NaNg1524111-Feb-06 8:13 
GeneralRe: Error Pin
NaNg1524111-Feb-06 9:36
NaNg1524111-Feb-06 9:36 
GeneralRe: Error Pin
perlmunger11-Feb-06 11:09
perlmunger11-Feb-06 11:09 
QuestionCreate list with Grid and getting Process info in C#. Pin
Yanshof11-Feb-06 1:37
Yanshof11-Feb-06 1:37 
AnswerSome one can help me with this question please ? Pin
Yanshof11-Feb-06 9:02
Yanshof11-Feb-06 9:02 
AnswerRe: Create list with Grid and getting Process info in C#. Pin
Dave Kreskowiak11-Feb-06 10:51
mveDave Kreskowiak11-Feb-06 10:51 
QuestionHow to browse SQL server from a network? Pin
bouli10-Feb-06 21:46
bouli10-Feb-06 21:46 
AnswerRe: How to browse SQL server from a network? Pin
perlmunger11-Feb-06 6:34
perlmunger11-Feb-06 6:34 

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.