Click here to Skip to main content
15,887,485 members
Home / Discussions / C#
   

C#

 
GeneralRe: Select Row in DataGridView By Using Code (Physically) Pin
Thaer Hamael28-Sep-09 5:20
Thaer Hamael28-Sep-09 5:20 
GeneralRe: Select Row in DataGridView By Using Code (Physically) Pin
MickCurley28-Sep-09 7:20
MickCurley28-Sep-09 7:20 
GeneralRe: Select Row in DataGridView By Using Code (Physically) Pin
Thaer Hamael28-Sep-09 20:48
Thaer Hamael28-Sep-09 20:48 
AnswerRe: Select Row in DataGridView By Using Code (Physically) Pin
bscaer28-Sep-09 5:39
bscaer28-Sep-09 5:39 
Questiondllnotfoundexception when compiling release version Pin
tjeffries28-Sep-09 4:50
tjeffries28-Sep-09 4:50 
QuestionReflection-Typecasting on a SortedList / KeyValuePair Pin
StephenGStone28-Sep-09 4:41
StephenGStone28-Sep-09 4:41 
AnswerRe: Reflection-Typecasting on a SortedList / KeyValuePair Pin
Henry Minute28-Sep-09 5:09
Henry Minute28-Sep-09 5:09 
GeneralRe: Reflection-Typecasting on a SortedList / KeyValuePair Pin
StephenGStone28-Sep-09 5:58
StephenGStone28-Sep-09 5:58 
How can I typecast an object,which is of type SortedList to a SortedList.

public static string UnknownSortedListToStr(object tmp)
{
string res = "";
object n;
object v;
  // This Line Fails.(Unless the SortedList passed in(tmp) was declared <object,object>)
SortedList<object, object> si = (SortedList<object, object>)tmp; 

if ((tmp.GetType().FullName.Contains("System.Collections.Generic.SortedList")) ||
(tmp.GetType().BaseType.FullName.Contains("System.Collections.Generic.SortedList")))
{
for (int i = 0; i < si.Count; i++)
{
string s = "";
n = si.Keys[i];
v = si.Values[i];
if (n != null)
s = n.ToString() + "=";
if (v != null)
s += v.ToString();
res += s + "\r\n";
}
}
else throw new Exception("Not a SortedList");
return res;
}

Steve

GeneralRe: Reflection-Typecasting on a SortedList / KeyValuePair Pin
Henry Minute28-Sep-09 10:04
Henry Minute28-Sep-09 10:04 
GeneralRe: Reflection-Typecasting on a SortedList / KeyValuePair Pin
StephenGStone28-Sep-09 12:52
StephenGStone28-Sep-09 12:52 
QuestionCan WinForm app use Flash as background? Pin
daveice28-Sep-09 4:13
daveice28-Sep-09 4:13 
AnswerRe: Can WinForm app use Flash as background? Pin
Eddy Vluggen28-Sep-09 4:43
professionalEddy Vluggen28-Sep-09 4:43 
GeneralRe: Can WinForm app use Flash as background? Pin
daveice28-Sep-09 18:02
daveice28-Sep-09 18:02 
GeneralRe: Can WinForm app use Flash as background? Pin
Eddy Vluggen28-Sep-09 21:28
professionalEddy Vluggen28-Sep-09 21:28 
QuestionWhy do we need to serialize data? Pin
Lijo Rajan28-Sep-09 3:51
Lijo Rajan28-Sep-09 3:51 
AnswerRe: Why do we need to serialize data? Pin
OriginalGriff28-Sep-09 3:55
mveOriginalGriff28-Sep-09 3:55 
AnswerRe: Why do we need to serialize data? Pin
Not Active28-Sep-09 3:57
mentorNot Active28-Sep-09 3:57 
AnswerRe: Why do we need to serialize data? Pin
vivasaayi28-Sep-09 3:58
vivasaayi28-Sep-09 3:58 
AnswerRe: Why do we need to serialize data? Pin
Pete O'Hanlon28-Sep-09 4:18
mvePete O'Hanlon28-Sep-09 4:18 
GeneralRe: Why do we need to serialize data? Pin
Luc Pattyn28-Sep-09 5:53
sitebuilderLuc Pattyn28-Sep-09 5:53 
GeneralRe: Why do we need to serialize data? Pin
Pete O'Hanlon28-Sep-09 8:42
mvePete O'Hanlon28-Sep-09 8:42 
QuestionOpen New Mail Pin
tamir90128-Sep-09 3:43
tamir90128-Sep-09 3:43 
AnswerRe: Open New Mail [modified] Pin
Not Active28-Sep-09 3:55
mentorNot Active28-Sep-09 3:55 
GeneralRe: Open New Mail Pin
tamir90128-Sep-09 5:01
tamir90128-Sep-09 5:01 
GeneralRe: Open New Mail Pin
Not Active28-Sep-09 5:07
mentorNot Active28-Sep-09 5:07 

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.