Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to add record to database with gridjanus and bindingnavigator Pin
fatemehsoleimani5-Oct-14 20:19
fatemehsoleimani5-Oct-14 20:19 
GeneralRe: how to add record to database with gridjanus and bindingnavigator Pin
fatemehsoleimani5-Oct-14 21:49
fatemehsoleimani5-Oct-14 21:49 
GeneralRe: how to add record to database with gridjanus and bindingnavigator Pin
fatemehsoleimani5-Oct-14 22:50
fatemehsoleimani5-Oct-14 22:50 
GeneralRe: how to add record to database with gridjanus and bindingnavigator Pin
fatemehsoleimani6-Oct-14 3:43
fatemehsoleimani6-Oct-14 3:43 
AnswerRe: wating for anser how to add record to database with gridjanus and bindingnavigator Pin
fatemehsoleimani9-Oct-14 5:30
fatemehsoleimani9-Oct-14 5:30 
Questionif, else if, and else statement. Pin
Member 111309765-Oct-14 9:06
Member 111309765-Oct-14 9:06 
AnswerRe: if, else if, and else statement. Pin
BillWoodruff5-Oct-14 9:56
professionalBillWoodruff5-Oct-14 9:56 
AnswerRe: if, else if, and else statement. Pin
Swinkaran5-Oct-14 12:36
professionalSwinkaran5-Oct-14 12:36 
C#
// Rewrite the If else condition as below,
   if((integer % 2 == 0) && (integer % 3 == 0))
            {
                Console.Write(integer + " is a multiple of both 2 and 3.");
            }

            else if (integer % 2 == 0)
            {
                Console.Write(integer + " is a multiple of 2.");
            }

            else if (integer % 3 == 0)
            {
                Console.Write(integer + "is a multiple of 3");
            }
 
            else
            {
                Console.Write(integer + " is not a multiple of either 2 or 3");
            }


Please refer the following useful materials,
http://msdn.microsoft.com/en-us/library/67ef8sbd.aspx[^]

http://msdn.microsoft.com/en-AU/library/ms173145.aspx[^]

It's very important to learn the basics of the language. Spend more time in read and learn.
AnswerRe: if, else if, and else statement. Pin
Dominic Burford8-Oct-14 4:09
professionalDominic Burford8-Oct-14 4:09 
QuestionMessage Removed Pin
5-Oct-14 2:36
fatemehsoleimani5-Oct-14 2:36 
QuestionSystem.NullReferenceException DataGrid WPF Pin
smgetaweh4-Oct-14 6:18
smgetaweh4-Oct-14 6:18 
AnswerRe: System.NullReferenceException DataGrid WPF Pin
Dave Kreskowiak4-Oct-14 7:22
mveDave Kreskowiak4-Oct-14 7:22 
GeneralRe: System.NullReferenceException DataGrid WPF Pin
smgetaweh4-Oct-14 7:40
smgetaweh4-Oct-14 7:40 
GeneralRe: System.NullReferenceException DataGrid WPF Pin
SledgeHammer014-Oct-14 8:57
SledgeHammer014-Oct-14 8:57 
AnswerRe: System.NullReferenceException DataGrid WPF Pin
Praneet Nadkar5-Oct-14 19:58
Praneet Nadkar5-Oct-14 19:58 
GeneralRe: System.NullReferenceException DataGrid WPF Pin
smgetaweh6-Oct-14 4:44
smgetaweh6-Oct-14 4:44 
QuestionDisabling a Row of Data Grid View on Send Mail Button click Pin
AMRITESH ASTHANA3-Oct-14 20:40
AMRITESH ASTHANA3-Oct-14 20:40 
AnswerRe: Disabling a Row of Data Grid View on Send Mail Button click Pin
Richard MacCutchan3-Oct-14 21:40
mveRichard MacCutchan3-Oct-14 21:40 
GeneralRe: Disabling a Row of Data Grid View on Send Mail Button click Pin
AMRITESH ASTHANA6-Oct-14 2:46
AMRITESH ASTHANA6-Oct-14 2:46 
QuestionAny fast way to get the stack trace? Pin
SledgeHammer013-Oct-14 15:59
SledgeHammer013-Oct-14 15:59 
AnswerRe: Any fast way to get the stack trace? Pin
fengyuancom3-Oct-14 18:13
fengyuancom3-Oct-14 18:13 
AnswerRe: Any fast way to get the stack trace? Pin
Pete O'Hanlon4-Oct-14 0:55
mvePete O'Hanlon4-Oct-14 0:55 
AnswerRe: Any fast way to get the stack trace? Pin
Dave Kreskowiak4-Oct-14 3:36
mveDave Kreskowiak4-Oct-14 3:36 
GeneralRe: Any fast way to get the stack trace? Pin
SledgeHammer014-Oct-14 6:02
SledgeHammer014-Oct-14 6:02 
GeneralRe: Any fast way to get the stack trace? Pin
Dave Kreskowiak4-Oct-14 7:17
mveDave Kreskowiak4-Oct-14 7: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.