Click here to Skip to main content
15,893,161 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to detect if a user leaves a control while holding a Mousebutton down? [modified] Pin
Megidolaon24-Mar-09 21:48
Megidolaon24-Mar-09 21:48 
Question.Net error..... Pin
S K Y23-Mar-09 22:40
S K Y23-Mar-09 22:40 
AnswerRe: .Net error..... Pin
Eddy Vluggen23-Mar-09 23:20
professionalEddy Vluggen23-Mar-09 23:20 
Questionexcel sheet Pin
Mangesh Tomar23-Mar-09 22:37
Mangesh Tomar23-Mar-09 22:37 
AnswerRe: excel sheet Pin
Nagy Vilmos23-Mar-09 23:01
professionalNagy Vilmos23-Mar-09 23:01 
QuestionPersiaDevelopers.com Pin
Majid Shahabfar23-Mar-09 22:13
Majid Shahabfar23-Mar-09 22:13 
AnswerRe: PersiaDevelopers.com Pin
Eddy Vluggen23-Mar-09 22:35
professionalEddy Vluggen23-Mar-09 22:35 
QuestionRetrieve items from the last index on Dictionary. Pin
CodingLover23-Mar-09 21:59
CodingLover23-Mar-09 21:59 
Hi all,

I've added value pair, int and string, in a Dictionary. Now I want to take pairs from the last. int value represent the index of a string and string value represent the value to insert into the original string.

I've try this.

            <br />
foreach (KeyValuePair<int,> pair in diction)<br />
{<br />
    str = str.Insert(pair.Key, pair.Value); // 'str' is he string I want to added <br />
}


This insert items in wrong index once the first item index is added in the correct place. So I want to added them from the last item. But I'm messup with that how to access the last element. Can someone help me to do this.

Thanks Smile | :)

I appreciate your help all the time...
CodingLover Smile | :)

AnswerRe: Retrieve items from the last index on Dictionary. Pin
12Code23-Mar-09 22:13
12Code23-Mar-09 22:13 
QuestionRe: Retrieve items from the last index on Dictionary. Pin
CodingLover23-Mar-09 22:19
CodingLover23-Mar-09 22:19 
AnswerRe: Retrieve items from the last index on Dictionary. Pin
12Code23-Mar-09 23:42
12Code23-Mar-09 23:42 
QuestionRe: Retrieve items from the last index on Dictionary. Pin
CodingLover23-Mar-09 23:53
CodingLover23-Mar-09 23:53 
AnswerRe: Retrieve items from the last index on Dictionary. Pin
12Code24-Mar-09 0:07
12Code24-Mar-09 0:07 
GeneralRe: Retrieve items from the last index on Dictionary. Pin
CodingLover24-Mar-09 0:41
CodingLover24-Mar-09 0:41 
GeneralRe: Retrieve items from the last index on Dictionary. Pin
12Code24-Mar-09 17:03
12Code24-Mar-09 17:03 
GeneralRe: Retrieve items from the last index on Dictionary. Pin
12Code23-Mar-09 23:53
12Code23-Mar-09 23:53 
QuestionRitch text box Pin
Sajjad Leo23-Mar-09 21:13
Sajjad Leo23-Mar-09 21:13 
AnswerRe: Ritch text box Pin
Deresen23-Mar-09 22:30
Deresen23-Mar-09 22:30 
GeneralRe: Ritch text box Pin
Sajjad Leo25-Mar-09 18:50
Sajjad Leo25-Mar-09 18:50 
GeneralRe: Ritch text box Pin
Deresen25-Mar-09 22:13
Deresen25-Mar-09 22:13 
Question[Message Deleted] Pin
w.hooper23-Mar-09 20:56
w.hooper23-Mar-09 20:56 
GeneralRe: C# I need a windows service that returns values to any application via a DLL interface Pin
King Julien23-Mar-09 22:58
King Julien23-Mar-09 22:58 
QuestionHow to change url name in browser using c#? Pin
svt gdwl23-Mar-09 20:46
svt gdwl23-Mar-09 20:46 
AnswerRe: How to change url name in browser using c#? Pin
Naruki23-Mar-09 22:01
Naruki23-Mar-09 22:01 
GeneralRe: How to change url name in browser using c#? Pin
Spunky Coder23-Mar-09 22:37
Spunky Coder23-Mar-09 22:37 

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.