Click here to Skip to main content
15,885,278 members
Home / Discussions / C#
   

C#

 
QuestionCreate diagonal in the DevExpress XtraReport Pin
nhanlaptrinh28-Dec-14 1:42
nhanlaptrinh28-Dec-14 1:42 
AnswerRe: Create diagonal in the DevExpress XtraReport Pin
Richard Andrew x6428-Dec-14 10:41
professionalRichard Andrew x6428-Dec-14 10:41 
GeneralRe: Create diagonal in the DevExpress XtraReport Pin
nhanlaptrinh29-Dec-14 3:59
nhanlaptrinh29-Dec-14 3:59 
GeneralRe: Create diagonal in the DevExpress XtraReport Pin
Pete O'Hanlon29-Dec-14 4:38
mvePete O'Hanlon29-Dec-14 4:38 
GeneralRe: Create diagonal in the DevExpress XtraReport Pin
nhanlaptrinh29-Dec-14 17:33
nhanlaptrinh29-Dec-14 17:33 
Questionwindows service to execute ms sql qurey Pin
Member 1129047526-Dec-14 19:25
Member 1129047526-Dec-14 19:25 
AnswerRe: windows service to execute ms sql qurey Pin
Garth J Lancaster26-Dec-14 19:39
professionalGarth J Lancaster26-Dec-14 19:39 
QuestionCan anyone give me advice on nested loops? Pin
Member 1133710826-Dec-14 16:29
Member 1133710826-Dec-14 16:29 
C#
int a = 0;
            int inputvalue = 0;
            for (int i = 0; i < 1; i++)
            {
                Console.WriteLine("Give me a number");
                inputvalue = Convert.ToInt16(Console.ReadLine());

                if (i == 0)
                    a = inputvalue;
                while ()


            }


            Console.ReadLine();



Hi guys, this is what I have so far. I am trying to learn this but i cant even understand the basics and i am really frustrated. Heres what im trying to do. Im trying to have a loop repeat certain code before it exits out. So in this example, I want to be able to write a nested loop where if I dont meet a certain condition, it continues to repeat until the condition is met. For example,
Give me a number greater than 50.
If the condition is met then loop out of the nested loop and ask for another number, if condition is not met, ask again until condition is met.

Am I close? do I have to use a loop at all or will an if statement suffice?
GeneralRe: Can anyone give me advice on nested loops? Pin
PIEBALDconsult26-Dec-14 17:18
mvePIEBALDconsult26-Dec-14 17:18 
AnswerRe: Can anyone give me advice on nested loops? Pin
tarun199126-Dec-14 19:08
professionaltarun199126-Dec-14 19:08 
AnswerRe: Can anyone give me advice on nested loops? Pin
BillWoodruff26-Dec-14 20:51
professionalBillWoodruff26-Dec-14 20:51 
GeneralRe: Can anyone give me advice on nested loops? Pin
Member 1133710826-Dec-14 21:14
Member 1133710826-Dec-14 21:14 
GeneralRe: Can anyone give me advice on nested loops? Pin
BillWoodruff26-Dec-14 21:40
professionalBillWoodruff26-Dec-14 21:40 
QuestionDetect Enter key press - click button when pressed Pin
robwm126-Dec-14 11:42
robwm126-Dec-14 11:42 
AnswerRe: Detect Enter key press - click button when pressed Pin
Dave Kreskowiak26-Dec-14 16:07
mveDave Kreskowiak26-Dec-14 16:07 
GeneralRe: Detect Enter key press - click button when pressed Pin
BillWoodruff26-Dec-14 23:04
professionalBillWoodruff26-Dec-14 23:04 
GeneralRe: Detect Enter key press - click button when pressed Pin
Dave Kreskowiak27-Dec-14 5:13
mveDave Kreskowiak27-Dec-14 5:13 
AnswerRe: Detect Enter key press - click button when pressed Pin
tarun199126-Dec-14 19:16
professionaltarun199126-Dec-14 19:16 
GeneralRe: Detect Enter key press - click button when pressed Pin
robwm127-Dec-14 6:24
robwm127-Dec-14 6:24 
GeneralRe: Detect Enter key press - click button when pressed Pin
tarun199128-Dec-14 7:45
professionaltarun199128-Dec-14 7:45 
GeneralRe: Detect Enter key press - click button when pressed Pin
tarun199131-Dec-14 7:42
professionaltarun199131-Dec-14 7:42 
AnswerRe: Detect Enter key press - click button when pressed Pin
BillWoodruff26-Dec-14 20:02
professionalBillWoodruff26-Dec-14 20:02 
GeneralRe: Detect Enter key press - click button when pressed Pin
robwm127-Dec-14 6:22
robwm127-Dec-14 6:22 
QuestionIn Custom Featured MessageBox how to change font size Pin
Member 1111316725-Dec-14 18:47
Member 1111316725-Dec-14 18:47 
AnswerRe: In Custom Featured MessageBox how to change font size Pin
BillWoodruff25-Dec-14 18:57
professionalBillWoodruff25-Dec-14 18:57 

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.