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

C#

 
AnswerRe: Best WinForm approach to presenting XML file in a pretty manner? Pin
PIEBALDconsult30-Nov-09 14:01
mvePIEBALDconsult30-Nov-09 14:01 
GeneralRe: Best WinForm approach to presenting XML file in a pretty manner? Pin
sherifffruitfly30-Nov-09 14:21
sherifffruitfly30-Nov-09 14:21 
QuestionWeird behaviour by DateTime.Substract Pin
Saksida Bojan30-Nov-09 11:48
Saksida Bojan30-Nov-09 11:48 
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 
Good afternoon.

I was wondering if there is a more efficient way to write this code:
//Resets the browser to the previous page when an item is deleted.
            if (cboSP_Site.SelectedIndex == -1 && inttmpSP != -1)
            {
                WebBrowser1.GoBack();
            }
            else if (cboWS.SelectedIndex == -1 && inttmpWS != -1)
            {
                WebBrowser1.GoBack();
            }
            else if (cboFolder.SelectedIndex == -1 && inttmpF != -1)
            {
                WebBrowser1.GoBack();
            }

I want to call the WebBrowser1.GoBack(); once if possible.

Thank you, WHEELS
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 
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 

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.