blah blah blah is here! blah blah » Close

0
votes
2 answers

Help with C# Gui -- Beginner

I am a newbie to C# and I am getting error messages because of a simple if statement. I am trying out my skills with a simple alarm clock, and I have 3 nested If Statments and it is giving me an error. here is the code I am using. It is m ...

0
votes
2 answers

can tis b change from if else to switch?

if (chk1min.Checked == false && chk2min.Checked == false && chk5min.Checked == false) { MessageBox.Show("PLEASE AT LEAST CHOOSE A TIMING"); } else if (chk1m ...

0
votes
1 answers

Simple problem C# (returning a xmlNode)

I had to split up my function with a if but the function does not allow returning values defined in the if() if (nodeHeader == "SUBJ:"){ XmlNode T1 = d.CreateNode(XmlNodeType.Element, "ap", "Topic", "x ...

0
votes
2 answers

Can use a switch statement for this or I'm going to just have to use if statements?

so honestly, I want to do it this way, but I can't. It says cannot convert 'bool' to 'int'. I'm asking because I do not fully understand what all I can do with a switch statement. I'm getting the drift I'm going to have to use if statements ...

0
votes
1 answers

about IF statement Help

public int Cash; public int GiveCash(int amount) { if (amount <= Cash && amount > 1) { Cash -= amount; return amount; } ...

0
votes
3 answers

C# return and IF problem

Tried this and it gives me an "unassigned local variable" on the return returnvalue; public bool enrolCheck(Paper p, Student s) { bool returnvalue; for (int i = 0; i < papersEnrolled.Count; i++) { string names = p ...

1
votes
1 answers

Is it possible to add a dropdownlist inside the radiobuttonlist as an item?

Is it possible to add a dropdownlist inside the radiobuttonlist as an item? if so how? Thanks!

0
votes
1 answers

find in a dataset if the next value is the same

Hi, I'm trying to find in a dataset if the next value is the same and if it is take its value in another var. ex. abc 100 200 abc 150 100 abc 100 250 abx 100 230 abv 100 200 abv 150 100 the data set is ordered... and i want t ...

1
votes
1 answers

Nested If and Switch statements

I am trying to see if you can nest a switch statement within an if statement. I have searched the web and seems to only be getting results for the opposite. Nesting an If within a switch. Can you tell me if you can nest a switch within an ...

Feedback