Click here to Skip to main content
15,899,474 members
Home / Discussions / C#
   

C#

 
AnswerRe: dll library loading Pin
Scott Dorman26-Sep-07 7:11
professionalScott Dorman26-Sep-07 7:11 
AnswerRe: dll library loading Pin
Pete O'Hanlon26-Sep-07 9:45
mvePete O'Hanlon26-Sep-07 9:45 
AnswerRe: dll library loading Pin
Larantz26-Sep-07 9:47
Larantz26-Sep-07 9:47 
QuestionSpecified argument was out of the range of valid values Pin
Rukmini T26-Sep-07 6:58
Rukmini T26-Sep-07 6:58 
AnswerRe: Specified argument was out of the range of valid values Pin
TJoe26-Sep-07 7:06
TJoe26-Sep-07 7:06 
AnswerRe: Specified argument was out of the range of valid values Pin
Scott Dorman26-Sep-07 7:09
professionalScott Dorman26-Sep-07 7:09 
GeneralRe: Specified argument was out of the range of valid values Pin
Rukmini T26-Sep-07 7:28
Rukmini T26-Sep-07 7:28 
GeneralRe: Specified argument was out of the range of valid values Pin
Scott Dorman26-Sep-07 7:58
professionalScott Dorman26-Sep-07 7:58 
Any reason you are using the AddAt function instead of Add? Even though you are skipping certain loop iterations, the counter is still being incremented, so when you call AddAt in the 3rd iteration there is a chance that the counter is at least 1 position higher than the Controls collection. If AddAt is passed an index that is outside of the Control bounds, it will not add it and throw the exception you are seeing. The Add function will always add to the end of the collection, so you wouldn't see this error.


Scott.

—In just two days, tomorrow will be yesterday.

[Forum Guidelines] [Articles] [Blog]

GeneralRe: Specified argument was out of the range of valid values Pin
Rukmini T26-Sep-07 8:14
Rukmini T26-Sep-07 8:14 
GeneralRe: Specified argument was out of the range of valid values Pin
Scott Dorman26-Sep-07 8:19
professionalScott Dorman26-Sep-07 8:19 
GeneralRe: Specified argument was out of the range of valid values Pin
Rukmini T26-Sep-07 8:42
Rukmini T26-Sep-07 8:42 
GeneralRe: Specified argument was out of the range of valid values Pin
Scott Dorman26-Sep-07 9:44
professionalScott Dorman26-Sep-07 9:44 
GeneralRe: Specified argument was out of the range of valid values Pin
Pete O'Hanlon26-Sep-07 9:42
mvePete O'Hanlon26-Sep-07 9:42 
GeneralRe: Specified argument was out of the range of valid values Pin
Scott Dorman26-Sep-07 9:45
professionalScott Dorman26-Sep-07 9:45 
Questionimage column Pin
TAREQ F ABUZUHRI26-Sep-07 6:42
TAREQ F ABUZUHRI26-Sep-07 6:42 
AnswerRe: image column Pin
Guffa26-Sep-07 7:02
Guffa26-Sep-07 7:02 
QuestionNetworkStream.DataAvailable is always false [modified] Pin
Anthony Mushrow26-Sep-07 6:34
professionalAnthony Mushrow26-Sep-07 6:34 
QuestionRe: NetworkStream.DataAvailable is only true once Pin
Anthony Mushrow26-Sep-07 6:57
professionalAnthony Mushrow26-Sep-07 6:57 
QuestionPhoto Gallery Pin
ddtayl0626-Sep-07 6:34
ddtayl0626-Sep-07 6:34 
AnswerRe: Photo Gallery Pin
Pete O'Hanlon26-Sep-07 10:10
mvePete O'Hanlon26-Sep-07 10:10 
QuestionException when Running a Process [modified] Pin
#realJSOP26-Sep-07 5:56
professional#realJSOP26-Sep-07 5:56 
AnswerRe: Exception when Running a Process Pin
Scott Dorman26-Sep-07 6:36
professionalScott Dorman26-Sep-07 6:36 
AnswerRe: Exception when Running a Process Pin
Justin Perez26-Sep-07 6:56
Justin Perez26-Sep-07 6:56 
GeneralRe: Exception when Running a Process Pin
#realJSOP26-Sep-07 8:10
professional#realJSOP26-Sep-07 8:10 
AnswerRe: Exception when Running a Process Pin
markkuk26-Sep-07 9:14
markkuk26-Sep-07 9:14 

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.