Click here to Skip to main content
15,910,009 members
Home / Discussions / C#
   

C#

 
GeneralRe: ColumnStyle event Pin
Dave Kreskowiak5-Apr-04 2:25
mveDave Kreskowiak5-Apr-04 2:25 
GeneralRe: ColumnStyle event Pin
boulite5-Apr-04 3:05
boulite5-Apr-04 3:05 
GeneralStrange Problem with loading pictures Pin
Snowjim4-Apr-04 22:52
Snowjim4-Apr-04 22:52 
GeneralRe: Strange Problem with loading pictures Pin
Heath Stewart5-Apr-04 4:35
protectorHeath Stewart5-Apr-04 4:35 
GeneralRe: Strange Problem with loading pictures Pin
Snowjim5-Apr-04 6:39
Snowjim5-Apr-04 6:39 
GeneralRe: Strange Problem with loading pictures Pin
Heath Stewart5-Apr-04 6:55
protectorHeath Stewart5-Apr-04 6:55 
GeneralIf (something) or (somethingElse) problem Pin
IanBatty4-Apr-04 22:45
IanBatty4-Apr-04 22:45 
GeneralRe: If (something) or (somethingElse) problem Pin
Colin Angus Mackay4-Apr-04 23:08
Colin Angus Mackay4-Apr-04 23:08 
You need to enclose the whole in brackets and the OR operator in C# is ||
(If you're curious the AND operator is &&)

Your code should look like this:
if ((cboCeaseType.SelectedValue.ToString () == "2") ||(cboCeaseType.SelectedValue.ToString () == "5" ))

I've underlined the changes.

Does this help?



"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar

"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)


GeneralRe: If (something) or (somethingElse) problem Pin
IanBatty4-Apr-04 23:20
IanBatty4-Apr-04 23:20 
GeneralRe: If (something) or (somethingElse) problem Pin
Adrian Stanley5-Apr-04 1:16
Adrian Stanley5-Apr-04 1:16 
GeneralRe: If (something) or (somethingElse) problem Pin
Jeremy Kimball5-Apr-04 3:42
Jeremy Kimball5-Apr-04 3:42 
Generalgenerate rtf code of pictures/images Pin
Jay Shankar4-Apr-04 18:50
Jay Shankar4-Apr-04 18:50 
GeneralRe: generate rtf code of pictures/images Pin
Heath Stewart4-Apr-04 19:33
protectorHeath Stewart4-Apr-04 19:33 
GeneralRe: generate rtf code of pictures/images Pin
Jay Shankar4-Apr-04 20:47
Jay Shankar4-Apr-04 20:47 
GeneralRe: generate rtf code of pictures/images Pin
Heath Stewart5-Apr-04 4:13
protectorHeath Stewart5-Apr-04 4:13 
GeneralRe: generate rtf code of pictures/images Pin
je_gonzalez5-Apr-04 12:44
je_gonzalez5-Apr-04 12:44 
GeneralRe: generate rtf code of pictures/images Pin
Jay Shankar5-Apr-04 15:15
Jay Shankar5-Apr-04 15:15 
GeneralComponent Properties Pin
dbetting4-Apr-04 17:57
dbetting4-Apr-04 17:57 
GeneralRe: Component Properties Pin
Heath Stewart4-Apr-04 18:10
protectorHeath Stewart4-Apr-04 18:10 
GeneralRe: Component Properties Pin
dbetting5-Apr-04 10:06
dbetting5-Apr-04 10:06 
GeneralRe: Component Properties Pin
Heath Stewart5-Apr-04 10:34
protectorHeath Stewart5-Apr-04 10:34 
QuestionGenerating listbox based on dataset? Pin
MeterMan4-Apr-04 17:45
MeterMan4-Apr-04 17:45 
AnswerRe: Generating listbox based on dataset? Pin
Heath Stewart4-Apr-04 18:06
protectorHeath Stewart4-Apr-04 18:06 
GeneralRe: Generating listbox based on dataset? Pin
MeterMan4-Apr-04 19:09
MeterMan4-Apr-04 19:09 
GeneralRe: Generating listbox based on dataset? Pin
MeterMan5-Apr-04 10:41
MeterMan5-Apr-04 10:41 

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.