Click here to Skip to main content
15,894,017 members
Home / Discussions / C#
   

C#

 
GeneralRe: Access to Singleton Instance. Pin
swjam16-Nov-09 18:24
swjam16-Nov-09 18:24 
GeneralRe: Access to Singleton Instance. Pin
Christian Graus16-Nov-09 18:56
protectorChristian Graus16-Nov-09 18:56 
AnswerRe: Access to Singleton Instance. Pin
Simon P Stevens18-Nov-09 1:03
Simon P Stevens18-Nov-09 1:03 
QuestionHow to exit a while loop inside of a while loop Pin
TheJudeDude16-Nov-09 16:09
TheJudeDude16-Nov-09 16:09 
AnswerRe: How to exit a while loop inside of a while loop Pin
Abhijit Jana16-Nov-09 17:18
professionalAbhijit Jana16-Nov-09 17:18 
AnswerRe: How to exit a while loop inside of a while loop Pin
Shameel16-Nov-09 22:49
professionalShameel16-Nov-09 22:49 
GeneralRe: How to exit a while loop inside of a while loop Pin
Luc Pattyn17-Nov-09 1:28
sitebuilderLuc Pattyn17-Nov-09 1:28 
GeneralRe: How to exit a while loop inside of a while loop Pin
Shameel17-Nov-09 3:15
professionalShameel17-Nov-09 3:15 
Yes, I am aware of them, but:

goto should be avoided as it leads to some hard to debug code paths.
return takes you out of the method itself, what if you want to do something after the while loop ?
throw should be used to signal an abnormal state and not to transfer control
And you know what the problem is with Application.Exit(), the whole process is brought down and you're thrown out of your app.

I did not want to confuse the OP with all these, he/she was asking for a simple method to prematurely exit a while loop.
GeneralRe: How to exit a while loop inside of a while loop Pin
Luc Pattyn17-Nov-09 3:33
sitebuilderLuc Pattyn17-Nov-09 3:33 
GeneralRe: How to exit a while loop inside of a while loop Pin
Shameel17-Nov-09 7:53
professionalShameel17-Nov-09 7:53 
AnswerRe: How to exit a while loop inside of a while loop Pin
Drew Stainton21-Nov-09 3:46
Drew Stainton21-Nov-09 3:46 
QuestionHow to exit a while loop inside of a while loop Pin
TheJudeDude16-Nov-09 16:07
TheJudeDude16-Nov-09 16:07 
AnswerRe: How to exit a while loop inside of a while loop Pin
Jaime Olivares16-Nov-09 16:38
Jaime Olivares16-Nov-09 16:38 
AnswerRe: How to exit a while loop inside of a while loop Pin
Jaime Olivares16-Nov-09 16:39
Jaime Olivares16-Nov-09 16:39 
GeneralRe: How to exit a while loop inside of a while loop Pin
TheJudeDude16-Nov-09 17:54
TheJudeDude16-Nov-09 17:54 
QuestionZoom Desktop like Windows 7 Magnifier? Pin
FocusedWolf16-Nov-09 15:43
FocusedWolf16-Nov-09 15:43 
AnswerRe: Zoom Desktop like Windows 7 Magnifier? Pin
Jaime Olivares16-Nov-09 16:30
Jaime Olivares16-Nov-09 16:30 
GeneralRe: Zoom Desktop like Windows 7 Magnifier? Pin
Jaime Olivares16-Nov-09 16:33
Jaime Olivares16-Nov-09 16:33 
GeneralRe: Zoom Desktop like Windows 7 Magnifier? Pin
FocusedWolf17-Nov-09 11:42
FocusedWolf17-Nov-09 11:42 
QuestionWebBrowser control without Form hosting Pin
csmanul16-Nov-09 15:26
csmanul16-Nov-09 15:26 
AnswerRe: WebBrowser control without Form hosting Pin
Luc Pattyn16-Nov-09 15:37
sitebuilderLuc Pattyn16-Nov-09 15:37 
GeneralRe: WebBrowser control without Form hosting Pin
csmanul17-Nov-09 1:28
csmanul17-Nov-09 1:28 
GeneralRe: WebBrowser control without Form hosting Pin
Luc Pattyn17-Nov-09 2:06
sitebuilderLuc Pattyn17-Nov-09 2:06 
AnswerRe: WebBrowser control without Form hosting Pin
Shameel16-Nov-09 22:54
professionalShameel16-Nov-09 22:54 
GeneralRe: WebBrowser control without Form hosting Pin
csmanul17-Nov-09 1:21
csmanul17-Nov-09 1:21 

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.