Click here to Skip to main content
15,889,863 members
Home / Discussions / C#
   

C#

 
AnswerSOLVED Pin
Emmet_Brown19-Oct-10 11:04
Emmet_Brown19-Oct-10 11:04 
AnswerRe: ExecuteNonQuery problem? Pin
Pete O'Hanlon19-Oct-10 22:04
mvePete O'Hanlon19-Oct-10 22:04 
QuestionAxWebBrowser object seems to be causing memory leak Pin
HalliHaida19-Oct-10 1:05
HalliHaida19-Oct-10 1:05 
AnswerRe: AxWebBrowser object seems to be causing memory leak PinPopular
Luc Pattyn19-Oct-10 1:39
sitebuilderLuc Pattyn19-Oct-10 1:39 
AnswerRe: AxWebBrowser object seems to be causing memory leak Pin
Pete O'Hanlon19-Oct-10 1:48
mvePete O'Hanlon19-Oct-10 1:48 
GeneralRe: AxWebBrowser object seems to be causing memory leak Pin
HalliHaida25-Oct-10 3:15
HalliHaida25-Oct-10 3:15 
QuestionMessage Removed Pin
18-Oct-10 22:11
Varun Sareen18-Oct-10 22:11 
AnswerRe: KeyValuePair List problem? Pin
OriginalGriff18-Oct-10 22:37
mveOriginalGriff18-Oct-10 22:37 
If what you are saying is that say your KVP list contains:
K1, AAA
K2, BBB
K3, BBB
K4, CCC
Then your strings list should only contain 3 elements: "AAA", "BBB", and "CCC", then you need to:
1) Change your array of strings to a List<string> as you don't know how many elements it will contain - you can convert it to an array later if you need to with the ToArray method.
2) Set a string lastValue and set it to the first value, plus the string "Do not match" - this ensures that the first KVP value is transferred to the new list.
3) In your loop, compare the current KVP value to lastValue and if different, use the Add method to add it to your List of strings.
4) At the bottom of your loop, set lastValue to the KVP Value.
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.

AnswerRe: KeyValuePair List problem? Pin
johannesnestler19-Oct-10 3:27
johannesnestler19-Oct-10 3:27 
QuestionForm submit to server [modified] Pin
Ajay Kale New18-Oct-10 20:45
Ajay Kale New18-Oct-10 20:45 
AnswerRe: Form submit to server Pin
OriginalGriff18-Oct-10 22:38
mveOriginalGriff18-Oct-10 22:38 
Questionhow to get value from form 1 to form 2 Pin
ash_ng18-Oct-10 17:29
ash_ng18-Oct-10 17:29 
AnswerRe: how to get value from form 1 to form 2 Pin
JF201518-Oct-10 18:07
JF201518-Oct-10 18:07 
AnswerRe: how to get value from form 1 to form 2 Pin
Abhinav S18-Oct-10 18:27
Abhinav S18-Oct-10 18:27 
AnswerRe: how to get value from form 1 to form 2 Pin
Calla18-Oct-10 19:46
Calla18-Oct-10 19:46 
GeneralRe: how to get value from form 1 to form 2 Pin
ash_ng18-Oct-10 20:07
ash_ng18-Oct-10 20:07 
GeneralRe: how to get value from form 1 to form 2 Pin
Calla18-Oct-10 20:19
Calla18-Oct-10 20:19 
GeneralRe: how to get value from form 1 to form 2 Pin
DaveyM6919-Oct-10 0:04
professionalDaveyM6919-Oct-10 0:04 
AnswerRe: how to get value from form 1 to form 2 Pin
Varun Sareen18-Oct-10 22:26
Varun Sareen18-Oct-10 22:26 
GeneralRe: how to get value from form 1 to form 2 Pin
OriginalGriff18-Oct-10 23:44
mveOriginalGriff18-Oct-10 23:44 
AnswerRe: how to get value from form 1 to form 2 Pin
johannesnestler19-Oct-10 3:37
johannesnestler19-Oct-10 3:37 
AnswerRe: how to get value from form 1 to form 2 Pin
Jeff Connelly19-Oct-10 4:26
Jeff Connelly19-Oct-10 4:26 
QuestionWriting/show a Variable/Result into a XML File Pin
glenki18-Oct-10 12:10
glenki18-Oct-10 12:10 
AnswerRe: Writing/show a Variable/Result into a XML File Pin
Luc Pattyn18-Oct-10 13:02
sitebuilderLuc Pattyn18-Oct-10 13:02 
GeneralRe: Writing/show a Variable/Result into a XML File [modified] Pin
glenki18-Oct-10 13:17
glenki18-Oct-10 13:17 

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.