Click here to Skip to main content
15,895,011 members
Home / Discussions / C#
   

C#

 
AnswerRe: Light up button text Pin
Simon P Stevens1-Oct-08 22:50
Simon P Stevens1-Oct-08 22:50 
GeneralRe: Light up button text Pin
Ed K2-Oct-08 15:26
Ed K2-Oct-08 15:26 
QuestionRe: Light up button text Pin
nelsonpaixao3-Oct-08 5:42
nelsonpaixao3-Oct-08 5:42 
AnswerRe: Light up button text Pin
Ed K3-Oct-08 8:24
Ed K3-Oct-08 8:24 
QuestionString Column On DataRow Is Null Pin
Kevin Marois1-Oct-08 10:37
professionalKevin Marois1-Oct-08 10:37 
AnswerRe: String Column On DataRow Is Null Pin
Tony Richards1-Oct-08 10:46
Tony Richards1-Oct-08 10:46 
AnswerRe: String Column On DataRow Is Null Pin
nelsonpaixao1-Oct-08 12:20
nelsonpaixao1-Oct-08 12:20 
GeneralRe: String Column On DataRow Is Null Pin
Tony Richards1-Oct-08 12:57
Tony Richards1-Oct-08 12:57 
This answer gave me another idea... I believe that the prefered way of dealing with casts in c# is to use:

string sAuthor = oDataSet.Tables[0].Rows[0]["Author"] as string;


This sets sAuthor to null when it can't be converted to a string, and shouldn't (hopefully) cause an exception.

Tony
GeneralRe: String Column On DataRow Is Null Pin
nelsonpaixao1-Oct-08 13:33
nelsonpaixao1-Oct-08 13:33 
QuestionDataSet Not Saving Pin
Kevin Marois1-Oct-08 8:44
professionalKevin Marois1-Oct-08 8:44 
AnswerRe: DataSet Not Saving Pin
Ennis Ray Lynch, Jr.1-Oct-08 9:35
Ennis Ray Lynch, Jr.1-Oct-08 9:35 
GeneralRe: DataSet Not Saving Pin
Kevin Marois1-Oct-08 10:26
professionalKevin Marois1-Oct-08 10:26 
Questionreporting of proc Pin
NiloofarNoroozi1-Oct-08 8:32
NiloofarNoroozi1-Oct-08 8:32 
AnswerRe: reporting of proc Pin
Ennis Ray Lynch, Jr.1-Oct-08 10:16
Ennis Ray Lynch, Jr.1-Oct-08 10:16 
GeneralRe: reporting of proc Pin
NiloofarNoroozi1-Oct-08 19:38
NiloofarNoroozi1-Oct-08 19:38 
QuestionConditional compiling - what ends up in the exe file Pin
Tim Holgerson1-Oct-08 7:38
Tim Holgerson1-Oct-08 7:38 
AnswerRe: Conditional compiling - what ends up in the exe file Pin
User 66581-Oct-08 8:15
User 66581-Oct-08 8:15 
AnswerRe: Conditional compiling - what ends up in the exe file Pin
Ennis Ray Lynch, Jr.1-Oct-08 9:37
Ennis Ray Lynch, Jr.1-Oct-08 9:37 
GeneralRe: Conditional compiling - what ends up in the exe file Pin
leppie1-Oct-08 20:04
leppie1-Oct-08 20:04 
GeneralRe: Conditional compiling - what ends up in the exe file Pin
Ennis Ray Lynch, Jr.2-Oct-08 2:27
Ennis Ray Lynch, Jr.2-Oct-08 2:27 
GeneralRe: Conditional compiling - what ends up in the exe file Pin
leppie2-Oct-08 2:37
leppie2-Oct-08 2:37 
GeneralRe: Conditional compiling - what ends up in the exe file Pin
Ennis Ray Lynch, Jr.2-Oct-08 2:56
Ennis Ray Lynch, Jr.2-Oct-08 2:56 
QuestionCreating Access DB Tables Pin
Planker1-Oct-08 6:57
Planker1-Oct-08 6:57 
AnswerRe: Creating Access DB Tables Pin
Dave Kreskowiak1-Oct-08 11:04
mveDave Kreskowiak1-Oct-08 11:04 
Questionpreventing system standby/hibernate from within Winforms app Pin
Neophyte301-Oct-08 5:50
Neophyte301-Oct-08 5:50 

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.