Click here to Skip to main content
12,395,089 members (67,978 online)
   

C#

 
AnswerRe: form don't respond immiditly Pin
OriginalGriff3-Feb-13 22:09
mvpOriginalGriff3-Feb-13 22:09 
AnswerRe: form don't respond immiditly Pin
DaveyM694-Feb-13 2:20
mentorDaveyM694-Feb-13 2:20 
GeneralRe: form don't respond immiditly Pin
mohammadkaab5-Feb-13 22:50
membermohammadkaab5-Feb-13 22:50 
GeneralRe: form don't respond immiditly Pin
DaveyM697-Feb-13 8:00
mentorDaveyM697-Feb-13 8:00 
QuestionCannot access string in System.String[] Pin
AmbiguousName3-Feb-13 21:06
memberAmbiguousName3-Feb-13 21:06 
AnswerRe: Cannot access string in System.String[] Pin
jibesh3-Feb-13 21:19
memberjibesh3-Feb-13 21:19 
GeneralRe: Cannot access string in System.String[] Pin
AmbiguousName3-Feb-13 21:21
memberAmbiguousName3-Feb-13 21:21 
GeneralRe: Cannot access string in System.String[] Pin
jibesh3-Feb-13 21:29
memberjibesh3-Feb-13 21:29 
that's the main problem when you work with ArrayList, Add method simply accepts any object you pass. here you are adding the string[] returned by the source.ToArray operation. to Add the array range you should use array.AddRange.

My personal recommendation is to avoid using ArrayList in your application and use Generic lists.

public void CopySetting(ArrayList mySrcArrayList)
{
    myTargetArrayList.Clear();
    myTargetArrayList.AddRange(mySrcArrayList.ToArray(typeof(string))); //copying the ArrayList
}
Jibesh V P

GeneralRe: Cannot access string in System.String[] Pin
BobJanova5-Feb-13 4:52
memberBobJanova5-Feb-13 4:52 
QuestionC# samples Pin
Nard you3-Feb-13 20:33
memberNard you3-Feb-13 20:33 
AnswerRe: C# samples Pin
Wayne Gaylard3-Feb-13 20:48
mentorWayne Gaylard3-Feb-13 20:48 
GeneralRe: C# samples Pin
Nard you3-Feb-13 21:00
memberNard you3-Feb-13 21:00 
GeneralRe: C# samples Pin
Wayne Gaylard3-Feb-13 21:07
mentorWayne Gaylard3-Feb-13 21:07 
AnswerRe: C# samples Pin
Abhinav S3-Feb-13 21:33
mvpAbhinav S3-Feb-13 21:33 
GeneralRe: C# samples Pin
Nard you3-Feb-13 21:47
memberNard you3-Feb-13 21:47 
AnswerRe: C# samples Pin
Amir Mohammad Nasrollahi29-Jul-13 22:52
professionalAmir Mohammad Nasrollahi29-Jul-13 22:52 
Generaloops Pin
ankul kumar from sharanpur3-Feb-13 17:37
memberankul kumar from sharanpur3-Feb-13 17:37 
AnswerRe: oops Pin
Abhinav S3-Feb-13 19:12
mvpAbhinav S3-Feb-13 19:12 
QuestionWhy is my windows chart so small, I cant change the size Pin
raymond leadingham3-Feb-13 2:47
memberraymond leadingham3-Feb-13 2:47 
AnswerRe: Why is my windows chart so small, I cant change the size Pin
Dave Kreskowiak3-Feb-13 5:06
mvpDave Kreskowiak3-Feb-13 5:06 
GeneralRe: Why is my windows chart so small, I cant change the size Pin
raymond leadingham3-Feb-13 5:30
memberraymond leadingham3-Feb-13 5:30 
GeneralRe: Why is my windows chart so small, I cant change the size Pin
Dave Kreskowiak3-Feb-13 9:05
mvpDave Kreskowiak3-Feb-13 9:05 
QuestionHow to List Banks in a Country in web site Pin
akhil lal2-Feb-13 20:55
memberakhil lal2-Feb-13 20:55 
AnswerRe: How to List Banks in a Country in web site Pin
Richard MacCutchan2-Feb-13 21:28
mvpRichard MacCutchan2-Feb-13 21:28 
GeneralRe: How to List Banks in a Country in web site Pin
akhil lal2-Feb-13 21:50
memberakhil lal2-Feb-13 21:50 

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.


Advertise | Privacy | Mobile
Web01 | 2.8.160721.1 | Last Updated 23 Jul 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid