Click here to Skip to main content
15,890,897 members
Home / Discussions / C#
   

C#

 
Questionc# hook winspool.drv Pin
toronja7218-Jan-10 3:38
toronja7218-Jan-10 3:38 
QuestionReference combobox used on another form? Pin
kanchoette18-Jan-10 1:25
kanchoette18-Jan-10 1:25 
AnswerRe: Reference combobox used on another form? Pin
Keith Barrow18-Jan-10 1:34
professionalKeith Barrow18-Jan-10 1:34 
GeneralRe: Reference combobox used on another form? Pin
kanchoette18-Jan-10 1:45
kanchoette18-Jan-10 1:45 
QuestionHow to continue without exiting... Pin
<<Tash18>>18-Jan-10 1:03
<<Tash18>>18-Jan-10 1:03 
AnswerMessage Closed Pin
18-Jan-10 1:21
stancrm18-Jan-10 1:21 
GeneralRe: How to continue without exiting... Pin
<<Tash18>>18-Jan-10 1:51
<<Tash18>>18-Jan-10 1:51 
AnswerRe: How to continue without exiting... Pin
Harvey Saayman18-Jan-10 1:24
Harvey Saayman18-Jan-10 1:24 
Hey there Thashif

I'd use a while loop for that Smile | :)

Here's an example

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleTest
{
    class Program
    {
        static void Main(string[] args)
        {
            bool QuitProgram = false;

            while (!QuitProgram)
            {
                Console.WriteLine("Please type your name or \"quit\" to exit");

                string Response = Console.ReadLine();

                if (Response.ToLower() == "quit")
                {
                    QuitProgram = true;
                }
                else
                {
                    DoWork(Response);
                }
            }
        }

        public static void DoWork(string Response)
        {
            Console.WriteLine("Hello {0}", Response);
        }
    }
}


Hope this helps Smile | :)

Harvey Saayman - South Africa
Software Developer
.Net, C#, SQL

you.suck = (you.Occupation == jobTitles.Programmer && you.Passion != Programming)
1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111

GeneralRe: How to continue without exiting... Pin
<<Tash18>>18-Jan-10 1:50
<<Tash18>>18-Jan-10 1:50 
GeneralRe: How to continue without exiting... Pin
Harvey Saayman18-Jan-10 2:01
Harvey Saayman18-Jan-10 2:01 
QuestionHow to simulate click button on win32 form ? Pin
Yanshof18-Jan-10 0:55
Yanshof18-Jan-10 0:55 
AnswerRe: How to simulate click button on win32 form ? Pin
#realJSOP18-Jan-10 1:00
mve#realJSOP18-Jan-10 1:00 
GeneralRe: How to simulate click button on win32 form ? Pin
Yanshof18-Jan-10 1:09
Yanshof18-Jan-10 1:09 
GeneralRe: How to simulate click button on win32 form ? Pin
Wes Aday18-Jan-10 4:15
professionalWes Aday18-Jan-10 4:15 
GeneralRe: How to simulate click button on win32 form ? Pin
#realJSOP18-Jan-10 10:24
mve#realJSOP18-Jan-10 10:24 
GeneralRe: How to simulate click button on win32 form ? Pin
Yanshof18-Jan-10 17:20
Yanshof18-Jan-10 17:20 
GeneralRe: How to simulate click button on win32 form ? Pin
#realJSOP18-Jan-10 23:26
mve#realJSOP18-Jan-10 23:26 
AnswerRe: How to simulate click button on win32 form ? Pin
Rick Shaub18-Jan-10 3:31
Rick Shaub18-Jan-10 3:31 
Question"Unescape" ISO string Pin
Keith Barrow18-Jan-10 0:48
professionalKeith Barrow18-Jan-10 0:48 
AnswerRe: "Unescape" ISO string Pin
PIEBALDconsult18-Jan-10 3:22
mvePIEBALDconsult18-Jan-10 3:22 
GeneralRe: "Unescape" ISO string Pin
Keith Barrow18-Jan-10 3:35
professionalKeith Barrow18-Jan-10 3:35 
GeneralRe: "Unescape" ISO string Pin
mdirkes18-Jan-10 3:52
mdirkes18-Jan-10 3:52 
GeneralRe: "Unescape" ISO string Pin
Keith Barrow18-Jan-10 4:12
professionalKeith Barrow18-Jan-10 4:12 
GeneralRe: "Unescape" ISO string Pin
PIEBALDconsult18-Jan-10 12:40
mvePIEBALDconsult18-Jan-10 12:40 
AnswerAnswer: But I feel dirty, and not in a good way..... Pin
Keith Barrow18-Jan-10 5:27
professionalKeith Barrow18-Jan-10 5:27 

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.