Click here to Skip to main content
15,918,330 members
Home / Discussions / C#
   

C#

 
QuestionLong Value in VScrollBar Pin
notacake2-Nov-06 5:02
notacake2-Nov-06 5:02 
QuestionReally need your help(someting aobut the directions which shoule I choose!!) Pin
wanlim08172-Nov-06 4:50
wanlim08172-Nov-06 4:50 
AnswerRe: Really need your help(someting aobut the directions which shoule I choose!!) Pin
Amar Chaudhary2-Nov-06 5:14
Amar Chaudhary2-Nov-06 5:14 
AnswerRe: Really need your help(someting aobut the directions which shoule I choose!!) Pin
Christian Graus2-Nov-06 12:56
protectorChristian Graus2-Nov-06 12:56 
AnswerRe: Really need your help(someting aobut the directions which shoule I choose!!) Pin
jlwarlow2-Nov-06 22:13
jlwarlow2-Nov-06 22:13 
QuestionRepeat Value Pin
mm3102-Nov-06 3:39
mm3102-Nov-06 3:39 
AnswerRe: Repeat Value Pin
Guffa2-Nov-06 4:20
Guffa2-Nov-06 4:20 
AnswerRe: Repeat Value Pin
Pradeep C2-Nov-06 13:46
Pradeep C2-Nov-06 13:46 
You could do something like this :

<br />
<br />
void Main(string[] args)<br />
{<br />
<br />
ArrayList ar = new ArrayList();<br />
            ar.Add(5);<br />
            ar.Add(2);<br />
            ar.Add(6);<br />
            ar.Add(5);<br />
            ar.Add(8);<br />
            ar.Add(9);<br />
            ar.Add(1);<br />
            ar.Add(1);<br />
            ar.Add(9);<br />
            ar.Add(5);<br />
RemoveDuplicates(ar);<br />
}<br />
<br />
void RemoveDuplicates(ArrayList ar)<br />
{<br />
            ar.Sort();<br />
            for (int i = ar.Count - 1; i > 0; i--)<br />
            {<br />
                if (ar[i].Equals(ar[i - 1]))<br />
                {<br />
                    ar.RemoveAt(i);<br />
                }<br />
            }<br />
}<br />




---
"Drawing on my superior command of language I said nothing."

QuestionTo focus or not to focus Pin
barbiomalefico2-Nov-06 2:26
barbiomalefico2-Nov-06 2:26 
AnswerRe: To focus or not to focus Pin
stancrm2-Nov-06 2:50
stancrm2-Nov-06 2:50 
GeneralRe: To focus or not to focus Pin
Tamimi - Code2-Nov-06 3:39
Tamimi - Code2-Nov-06 3:39 
AnswerRe: To focus or not to focus Pin
Saqib Mehmood2-Nov-06 2:56
Saqib Mehmood2-Nov-06 2:56 
Questionsimple grafics problem Pin
rzvme2-Nov-06 2:07
rzvme2-Nov-06 2:07 
AnswerRe: simple grafics problem Pin
V.2-Nov-06 3:09
professionalV.2-Nov-06 3:09 
AnswerRe: simple grafics problem Pin
J4amieC2-Nov-06 3:45
J4amieC2-Nov-06 3:45 
GeneralRe: simple grafics problem Pin
rzvme2-Nov-06 20:50
rzvme2-Nov-06 20:50 
QuestionIs this a bug in .NET 2.0? Pin
adfgh752-Nov-06 2:02
adfgh752-Nov-06 2:02 
AnswerRe: Is this a bug in .NET 2.0? Pin
sam#2-Nov-06 2:35
sam#2-Nov-06 2:35 
AnswerRe: Is this a bug in .NET 2.0? Pin
Michael P Butler2-Nov-06 2:53
Michael P Butler2-Nov-06 2:53 
GeneralRe: Is this a bug in .NET 2.0? Pin
adfgh752-Nov-06 3:54
adfgh752-Nov-06 3:54 
Questionif statement Pin
fmardani2-Nov-06 1:57
fmardani2-Nov-06 1:57 
AnswerRe: if statement Pin
sam#2-Nov-06 2:16
sam#2-Nov-06 2:16 
AnswerRe: if statement Pin
J4amieC2-Nov-06 2:20
J4amieC2-Nov-06 2:20 
GeneralRe: if statement Pin
eggsovereasy2-Nov-06 3:30
eggsovereasy2-Nov-06 3:30 
GeneralRe: if statement Pin
J4amieC2-Nov-06 3:39
J4amieC2-Nov-06 3:39 

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.