Click here to Skip to main content
15,892,927 members
Home / Discussions / C#
   

C#

 
AnswerRe: Weird behaviour by DateTime.Substract Pin
Richard MacCutchan30-Nov-09 12:27
mveRichard MacCutchan30-Nov-09 12:27 
AnswerRe: Weird behaviour by DateTime.Substract Pin
Luc Pattyn30-Nov-09 12:29
sitebuilderLuc Pattyn30-Nov-09 12:29 
GeneralRe: Weird behaviour by DateTime.Substract Pin
Saksida Bojan30-Nov-09 20:09
Saksida Bojan30-Nov-09 20:09 
GeneralRe: Weird behaviour by DateTime.Substract Pin
Luc Pattyn1-Dec-09 0:17
sitebuilderLuc Pattyn1-Dec-09 0:17 
QuestionNested if statements Pin
Wheels01230-Nov-09 10:05
Wheels01230-Nov-09 10:05 
AnswerRe: Nested if statements Pin
Saksida Bojan30-Nov-09 10:17
Saksida Bojan30-Nov-09 10:17 
GeneralRe: Nested if statements Pin
Luc Pattyn30-Nov-09 10:23
sitebuilderLuc Pattyn30-Nov-09 10:23 
AnswerRe: Nested if statements Pin
Luc Pattyn30-Nov-09 10:17
sitebuilderLuc Pattyn30-Nov-09 10:17 
there are many ways to get what you want, here is one:
if ((cboSP_Site.SelectedIndex == -1 && inttmpSP != -1) ||
    (cboWS.SelectedIndex == -1 && inttmpWS != -1) ||
    (cboFolder.SelectedIndex == -1 && inttmpF != -1)) {
        WebBrowser1.GoBack();
}

and another one:
bool goBack=false;
if (cboSP_Site.SelectedIndex == -1 && inttmpSP != -1) goBack=true;
else if (cboWS.SelectedIndex == -1 && inttmpWS != -1) goBack=true;
else if (cboFolder.SelectedIndex == -1 && inttmpF != -1)) goBack=true;
if (goBack) WebBrowser1.GoBack();


BTW: here the "else" keywords are optional

Smile | :)

Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


modified on Monday, November 30, 2009 4:23 PM

GeneralRe: Nested if statements Pin
Wheels01230-Nov-09 10:30
Wheels01230-Nov-09 10:30 
AnswerRe: Nested if statements Pin
Ravi Bhavnani30-Nov-09 11:00
professionalRavi Bhavnani30-Nov-09 11:00 
GeneralRe: Nested if statements Pin
JollyMansArt30-Nov-09 11:20
JollyMansArt30-Nov-09 11:20 
GeneralRe: Nested if statements Pin
Luc Pattyn30-Nov-09 11:27
sitebuilderLuc Pattyn30-Nov-09 11:27 
GeneralRe: Nested if statements Pin
Wheels0121-Dec-09 1:26
Wheels0121-Dec-09 1:26 
QuestionsplitContainer control Pin
JollyMansArt30-Nov-09 10:01
JollyMansArt30-Nov-09 10:01 
AnswerRe: splitContainer control Pin
Luc Pattyn30-Nov-09 10:21
sitebuilderLuc Pattyn30-Nov-09 10:21 
QuestionRe: splitContainer control Pin
JollyMansArt30-Nov-09 11:19
JollyMansArt30-Nov-09 11:19 
AnswerRe: splitContainer control Pin
Luc Pattyn30-Nov-09 11:24
sitebuilderLuc Pattyn30-Nov-09 11:24 
QuestionRe: splitContainer control Pin
JollyMansArt30-Nov-09 11:39
JollyMansArt30-Nov-09 11:39 
AnswerRe: splitContainer control Pin
Luc Pattyn30-Nov-09 12:26
sitebuilderLuc Pattyn30-Nov-09 12:26 
AnswerRe: splitContainer control Pin
dybs30-Nov-09 16:05
dybs30-Nov-09 16:05 
Questionneed help!!! thanks... Pin
alexyxj30-Nov-09 7:54
alexyxj30-Nov-09 7:54 
AnswerRe: need help!!! thanks... Pin
Tony Richards30-Nov-09 8:20
Tony Richards30-Nov-09 8:20 
GeneralRe: need help!!! thanks... Pin
alexyxj30-Nov-09 8:33
alexyxj30-Nov-09 8:33 
QuestionBasic Question: Conversion Pin
Saksida Bojan30-Nov-09 7:09
Saksida Bojan30-Nov-09 7:09 
AnswerRe: Basic Question: Conversion Pin
PIEBALDconsult30-Nov-09 7:37
mvePIEBALDconsult30-Nov-09 7:37 

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.