Results 1 to 4 of 4

Thread: [RESOLVED] C# Console List Selector

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2013
    Posts
    43

    Resolved [RESOLVED] C# Console List Selector

    Hi Guys, I have this list on a line in the Console:

    <Tutorial> <Add Event> <Edit Event> <Remove Event> <Exit>

    Code:
    private static void startup()
            {
                Console.WriteLine("Welcome to the Console Calendar. What would you like to do?");
                Console.WriteLine("<Tutorial> <Add Event> <Edit Event> <Remove Event> <Exit>");
            }
    What I would like is to be able to use the Left and Right arrow keys to select the option the user wants. Signified by the item being underlined. EDIT: Underlined is preferred however research suggests it may not be possible. So I am open to suggestions.

    Visual Example:

    <Tutorial> <Add Event> <Edit Event> <Remove Event> <Exit>

    I am guessing I will need a to set up some sort of keypress method for the arrow keys, but haven't a clue how to put it together to achieve what is needed.

    Hope someone can help me
    Last edited by DJ_Warp; Apr 26th, 2015 at 06:54 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width