Click here to Skip to main content
15,907,395 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to get mouse selection Pin
Christian Graus20-Oct-06 0:57
protectorChristian Graus20-Oct-06 0:57 
GeneralRe: How to get mouse selection Pin
quiteSmart20-Oct-06 1:57
quiteSmart20-Oct-06 1:57 
AnswerRe: How to get mouse selection Pin
baerten20-Oct-06 1:00
baerten20-Oct-06 1:00 
QuestionHow to use Progressbar For File.Copy method ? Pin
hdv21219-Oct-06 23:23
hdv21219-Oct-06 23:23 
AnswerRe: How to use Progressbar For File.Copy method ? Pin
Bekjong19-Oct-06 23:48
Bekjong19-Oct-06 23:48 
QuestionProducing a mini dump after an application crash (C#) Pin
raskar19-Oct-06 23:14
raskar19-Oct-06 23:14 
QuestionHow to get size of uncompressed zipfile? Pin
pacesino19-Oct-06 23:11
pacesino19-Oct-06 23:11 
QuestionLoad current datagrid row data into text field Pin
Wargamon19-Oct-06 21:44
Wargamon19-Oct-06 21:44 
QuestionHow to generate a random number [modified] Pin
CodeItWell19-Oct-06 21:23
CodeItWell19-Oct-06 21:23 
AnswerRe: How to generate a random number Pin
seee sharp19-Oct-06 21:33
seee sharp19-Oct-06 21:33 
AnswerRe: How to generate a random number Pin
Guffa19-Oct-06 22:09
Guffa19-Oct-06 22:09 
QuestionHow to get program start directory after using FileDialog Pin
Ramith Sivanarain19-Oct-06 21:23
Ramith Sivanarain19-Oct-06 21:23 
AnswerRe: How to get program start directory after using FileDialog Pin
jjansen19-Oct-06 21:28
jjansen19-Oct-06 21:28 
QuestionProcessing global mouse and keyboard hooks in a secondary thread! Pin
AngryC19-Oct-06 21:07
AngryC19-Oct-06 21:07 
QuestionUsing IR Port Pin
Ravikumar Patra19-Oct-06 19:21
professionalRavikumar Patra19-Oct-06 19:21 
AnswerRe: Using IR Port Pin
Ashish Derhgawen19-Oct-06 23:23
Ashish Derhgawen19-Oct-06 23:23 
GeneralRe: Using IR Port [modified] Pin
Ravikumar Patra29-Oct-06 17:42
professionalRavikumar Patra29-Oct-06 17:42 
QuestionCommunication internet Pin
nmhai8319-Oct-06 18:54
nmhai8319-Oct-06 18:54 
AnswerRe: Communication internet Pin
seee sharp19-Oct-06 21:40
seee sharp19-Oct-06 21:40 
Questionhow do i convert string to type? help please! Pin
abstar19-Oct-06 17:58
abstar19-Oct-06 17:58 
AnswerRe: how do i convert string to type? help please! Pin
Captain See Sharp19-Oct-06 18:25
Captain See Sharp19-Oct-06 18:25 
GeneralRe: how do i convert string to type? help please! Pin
abstar19-Oct-06 18:43
abstar19-Oct-06 18:43 
GeneralRe: how do i convert string to type? help please! [modified] Pin
Captain See Sharp19-Oct-06 19:30
Captain See Sharp19-Oct-06 19:30 
Sorry, I thought this would work but it doesn't. I will leave it here in the hopes that it might spark an idea on how to do it.

string stype = "System.Int32";
Type t = Type.GetType(stype);

IConvertible converter = (IConvertible)t; //runtime error, Unable to cast object of type
//'System.RuntimeType' to type 'System.IConvertible'.

object obj = converter.ToType(typeof(int), CultureInfo.InvariantCulture);
//(or)
int i = (int)converter.ToType(typeof(int), CultureInfo.InvariantCulture);


InvariantCulture is a static property defined in the System.Globalization.CultureInfo class.




-- modified at 1:35 Friday 20th October, 2006


█▒▒▒▒▒██▒█▒██
█▒█████▒▒▒▒▒█
█▒██████▒█▒██
█▒█████▒▒▒▒▒█
█▒▒▒▒▒██▒█▒██

GeneralRe: how do i convert string to type? help please! Pin
J4amieC19-Oct-06 21:59
J4amieC19-Oct-06 21:59 
GeneralRe: how do i convert string to type? help please! Pin
Captain See Sharp20-Oct-06 13:49
Captain See Sharp20-Oct-06 13:49 

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.