Click here to Skip to main content
15,912,329 members
Home / Discussions / C#
   

C#

 
GeneralRe: adding 24 hours onto DateTime variable Pin
Malcolm Smart26-Sep-07 21:08
Malcolm Smart26-Sep-07 21:08 
GeneralRe: adding 24 hours onto DateTime variable Pin
Pete O'Hanlon26-Sep-07 22:13
mvePete O'Hanlon26-Sep-07 22:13 
QuestionHelp In simulation Pin
prog_omer_esmail26-Sep-07 9:34
prog_omer_esmail26-Sep-07 9:34 
AnswerRe: Help In simulation Pin
pmarfleet26-Sep-07 9:40
pmarfleet26-Sep-07 9:40 
Questiondll library loading Pin
Blubbo26-Sep-07 7:06
Blubbo26-Sep-07 7:06 
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 

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.