Click here to Skip to main content
16,006,341 members
Home / Discussions / C#
   

C#

 
Questionc# to excel Pin
barak16048725-Jan-07 11:28
barak16048725-Jan-07 11:28 
AnswerRe: c# to excel Pin
Ravi Bhavnani25-Jan-07 11:35
professionalRavi Bhavnani25-Jan-07 11:35 
AnswerRe: c# to excel [modified] Pin
mihksoft25-Jan-07 20:05
mihksoft25-Jan-07 20:05 
Answerthank u it helped :) Pin
barak16048726-Jan-07 0:38
barak16048726-Jan-07 0:38 
QuestionSuspending event handling Pin
Drew McGhie25-Jan-07 10:26
Drew McGhie25-Jan-07 10:26 
AnswerRe: Suspending event handling Pin
Abisodun25-Jan-07 11:14
Abisodun25-Jan-07 11:14 
QuestionCast methods Pin
Aaron VanWieren25-Jan-07 10:21
Aaron VanWieren25-Jan-07 10:21 
AnswerRe: Cast methods Pin
Marc Clifton25-Jan-07 12:26
mvaMarc Clifton25-Jan-07 12:26 
A couple things:

An exception will not be thrown if the conversion of a numeric type results in a loss of precision (that is, the loss of some least significant digits). However, an exception will be thrown if the result is larger than can be represented by the particular conversion method's return value type.

and...

Some of the methods in this class take a parameter object that implements the IFormatProvider interface. This parameter can supply culture-specific formatting information to assist the conversion process.

Among other things, casting doesn't always work:

string foo="123";
int i=(int)foo; // That doesn't work
int j=Convert.ToInt32(foo); // This works.

Marc


Thyme In The Country

People are just notoriously impossible. --DavidCrow
There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer
People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith


GeneralRe: Cast methods Pin
Aaron VanWieren25-Jan-07 12:31
Aaron VanWieren25-Jan-07 12:31 
GeneralRe: Cast methods Pin
Abisodun25-Jan-07 13:48
Abisodun25-Jan-07 13:48 
AnswerRe: Cast methods Pin
Christian Graus25-Jan-07 15:48
protectorChristian Graus25-Jan-07 15:48 
Questionrecord stream from webcam Pin
sini8725-Jan-07 9:30
sini8725-Jan-07 9:30 
AnswerRe: record stream from webcam Pin
Ed.Poore25-Jan-07 12:01
Ed.Poore25-Jan-07 12:01 
QuestionHow to restore the default base path after using an open file dialog Pin
Dan Neely25-Jan-07 8:52
Dan Neely25-Jan-07 8:52 
AnswerRe: How to restore the default base path after using an open file dialog Pin
Dave Kreskowiak25-Jan-07 9:19
mveDave Kreskowiak25-Jan-07 9:19 
GeneralRe: How to restore the default base path after using an open file dialog Pin
Dan Neely25-Jan-07 9:48
Dan Neely25-Jan-07 9:48 
GeneralRe: How to restore the default base path after using an open file dialog Pin
Dave Kreskowiak25-Jan-07 10:26
mveDave Kreskowiak25-Jan-07 10:26 
GeneralRe: How to restore the default base path after using an open file dialog Pin
Martin#25-Jan-07 19:40
Martin#25-Jan-07 19:40 
GeneralRe: How to restore the default base path after using an open file dialog Pin
Dave Kreskowiak26-Jan-07 2:29
mveDave Kreskowiak26-Jan-07 2:29 
GeneralRe: How to restore the default base path after using an open file dialog Pin
Martin#26-Jan-07 3:07
Martin#26-Jan-07 3:07 
GeneralRe: How to restore the default base path after using an open file dialog Pin
Dave Kreskowiak26-Jan-07 14:07
mveDave Kreskowiak26-Jan-07 14:07 
GeneralRe: How to restore the default base path after using an open file dialog Pin
Martin#28-Jan-07 22:59
Martin#28-Jan-07 22:59 
AnswerRe: How to restore the default base path after using an open file dialog Pin
Martin#25-Jan-07 9:29
Martin#25-Jan-07 9:29 
GeneralRe: How to restore the default base path after using an open file dialog Pin
Dave Kreskowiak25-Jan-07 10:27
mveDave Kreskowiak25-Jan-07 10:27 
GeneralRe: How to restore the default base path after using an open file dialog Pin
Martin#25-Jan-07 19:36
Martin#25-Jan-07 19:36 

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.