Click here to Skip to main content
15,907,392 members
Home / Discussions / C#
   

C#

 
GeneralRe: foreach Pin
Justin Perez26-Oct-07 3:11
Justin Perez26-Oct-07 3:11 
GeneralRe: foreach Pin
Paul Conrad27-Oct-07 11:18
professionalPaul Conrad27-Oct-07 11:18 
QuestionTo Resize Word document or Pdf file. Pin
vijaiganesh26-Oct-07 1:02
vijaiganesh26-Oct-07 1:02 
Questionswitch statement Pin
codemunkeh26-Oct-07 1:02
codemunkeh26-Oct-07 1:02 
AnswerRe: switch statement Pin
J4amieC26-Oct-07 1:05
J4amieC26-Oct-07 1:05 
GeneralRe: switch statement Pin
codemunkeh26-Oct-07 1:14
codemunkeh26-Oct-07 1:14 
GeneralRe: switch statement Pin
Urs Enzler26-Oct-07 1:24
Urs Enzler26-Oct-07 1:24 
AnswerRe: switch statement Pin
Scott Dorman26-Oct-07 3:48
professionalScott Dorman26-Oct-07 3:48 
C# doesn't have the same concept behind switch statements as VB. It can be done, but you would need to list all of the values between "x" and "y". The "is > z" can't be represented by a case, however.

Your best bet would be to do either rework your logic so you can use the switch, which would probably mean defining more specific cases and using the default case to handle the "is > z" condition, or to use if/else blocks.


Scott.

—In just two days, tomorrow will be yesterday.

[Forum Guidelines] [Articles] [Blog]

QuestionUsing Javascript to fire an event in another class....? Pin
Dave2560026-Oct-07 0:51
Dave2560026-Oct-07 0:51 
AnswerRe: Using Javascript to fire an event in another class....? Pin
Shanmugam R26-Oct-07 1:45
Shanmugam R26-Oct-07 1:45 
GeneralRe: Using Javascript to fire an event in another class....? [modified] Pin
Dave2560026-Oct-07 2:04
Dave2560026-Oct-07 2:04 
GeneralRe: Using Javascript to fire an event in another class....? Pin
kubben26-Oct-07 3:07
kubben26-Oct-07 3:07 
GeneralRe: Using Javascript to fire an event in another class....? Pin
Dave2560026-Oct-07 3:23
Dave2560026-Oct-07 3:23 
QuestionCOM Object error Pin
DeepOceans26-Oct-07 0:50
DeepOceans26-Oct-07 0:50 
Questiondatagridview update Pin
NewToAspDotNet26-Oct-07 0:43
NewToAspDotNet26-Oct-07 0:43 
AnswerRe: datagridview update Pin
Paul Conrad27-Oct-07 12:24
professionalPaul Conrad27-Oct-07 12:24 
QuestionHow to make print job in a specific order using C# Pin
tiasoft26-Oct-07 0:26
tiasoft26-Oct-07 0:26 
AnswerRe: How to make print job in a specific order using C# Pin
Paul Conrad27-Oct-07 12:25
professionalPaul Conrad27-Oct-07 12:25 
QuestionThread & timer in Web application C# Pin
ASGuru26-Oct-07 0:18
ASGuru26-Oct-07 0:18 
AnswerRe: Thread & timer in Web application C# Pin
Christian Graus26-Oct-07 0:31
protectorChristian Graus26-Oct-07 0:31 
QuestionLoad and resize a bitmap Pin
Christian Graus26-Oct-07 0:17
protectorChristian Graus26-Oct-07 0:17 
AnswerRe: Load and resize a bitmap Pin
codemunkeh26-Oct-07 0:53
codemunkeh26-Oct-07 0:53 
GeneralRe: Load and resize a bitmap Pin
Christian Graus26-Oct-07 1:10
protectorChristian Graus26-Oct-07 1:10 
AnswerRe: Load and resize a bitmap [modified] Pin
Anthony Mushrow26-Oct-07 1:11
professionalAnthony Mushrow26-Oct-07 1:11 
GeneralRe: Load and resize a bitmap Pin
Christian Graus26-Oct-07 11:47
protectorChristian Graus26-Oct-07 11:47 

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.