Click here to Skip to main content
15,922,650 members
Home / Discussions / C#
   

C#

 
AnswerRe: Handling the state of a form Pin
Michael Bookatz16-Mar-09 0:38
Michael Bookatz16-Mar-09 0:38 
QuestionHow to create own spell checker window in c# or vb.net(windows) Pin
dilipmca0415-Mar-09 21:21
dilipmca0415-Mar-09 21:21 
AnswerRe: How to create own spell checker window in c# or vb.net(windows) Pin
Christian Graus15-Mar-09 22:07
protectorChristian Graus15-Mar-09 22:07 
AnswerRe: How to create own spell checker window in c# or vb.net(windows) Pin
Eddy Vluggen15-Mar-09 22:35
professionalEddy Vluggen15-Mar-09 22:35 
QuestionHow to add folder with files at runtime into solution explorer visual studio 2008 Pin
am 200915-Mar-09 21:15
am 200915-Mar-09 21:15 
QuestionAdding an AJAX enabled page to normal ASP.NET website Pin
maheshsahini15-Mar-09 21:12
maheshsahini15-Mar-09 21:12 
AnswerRe: Adding an AJAX enabled page to normal ASP.NET website Pin
Christian Graus15-Mar-09 22:08
protectorChristian Graus15-Mar-09 22:08 
QuestionInsert multiple data in a single excel row Pin
shantanusenin15-Mar-09 20:55
shantanusenin15-Mar-09 20:55 
AnswerRe: Insert multiple data in a single excel row Pin
Christian Graus15-Mar-09 22:09
protectorChristian Graus15-Mar-09 22:09 
Question[Message Deleted] Pin
prettymugdha15-Mar-09 20:28
prettymugdha15-Mar-09 20:28 
AnswerRe: send file from web application to windows application via http post PinPopular
Christian Graus15-Mar-09 20:34
protectorChristian Graus15-Mar-09 20:34 
QuestionUrlDownloadToFile () in c# Pin
p_196015-Mar-09 19:17
p_196015-Mar-09 19:17 
AnswerRe: UrlDownloadToFile () in c# Pin
Christian Graus15-Mar-09 20:35
protectorChristian Graus15-Mar-09 20:35 
Questionproblem passing datetime to webservice Pin
prasadbuddhika15-Mar-09 18:12
prasadbuddhika15-Mar-09 18:12 
AnswerRe: problem passing datetime to webservice Pin
King Julien15-Mar-09 21:00
King Julien15-Mar-09 21:00 
QuestionControl cannot fall through from one case label ('case 64:') to another? Pin
dec8215-Mar-09 17:15
dec8215-Mar-09 17:15 
AnswerRe: Control cannot fall through from one case label ('case 64:') to another? Pin
Christian Graus15-Mar-09 18:34
protectorChristian Graus15-Mar-09 18:34 
GeneralRe: Control cannot fall through from one case label ('case 64:') to another? Pin
dec8215-Mar-09 18:55
dec8215-Mar-09 18:55 
GeneralRe: Control cannot fall through from one case label ('case 64:') to another? Pin
S. Senthil Kumar15-Mar-09 19:10
S. Senthil Kumar15-Mar-09 19:10 
GeneralRe: Control cannot fall through from one case label ('case 64:') to another? Pin
Christian Graus15-Mar-09 19:12
protectorChristian Graus15-Mar-09 19:12 
GeneralRe: Control cannot fall through from one case label ('case 64:') to another? Pin
dec8215-Mar-09 19:16
dec8215-Mar-09 19:16 
GeneralRe: Control cannot fall through from one case label ('case 64:') to another? Pin
S. Senthil Kumar15-Mar-09 19:45
S. Senthil Kumar15-Mar-09 19:45 
GeneralRe: Control cannot fall through from one case label ('case 64:') to another? Pin
Dave Kreskowiak15-Mar-09 20:23
mveDave Kreskowiak15-Mar-09 20:23 
GeneralRe: Control cannot fall through from one case label ('case 64:') to another? Pin
Christian Graus15-Mar-09 20:33
protectorChristian Graus15-Mar-09 20:33 
AnswerRe: Control cannot fall through from one case label ('case 64:') to another? Pin
Megidolaon16-Mar-09 1:49
Megidolaon16-Mar-09 1:49 
Actually break; cause the switch to exit and continue with the codoe afterwards.
Leaving it and not writing anything, but simply adding other case will automatically cause the switch to move on and execute all code until the next break;

Thus if you have somethng like this:
switch(number)
   case 1: //do stuff
     break;

   case 2:  //do stuff or not
   case 3: // do more stuff
      break;
   
   case 4: //do stuff
      break;
the program will do the exact same for 2 and 3.
If you don't want it to do anything different for 2, you might as well leave that case empty, so it immediately goes to the next code before the break;

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.