How to catch key from keyboard in C#
问题 I have a problem. I need write a C# program Input: Allows the user to enter multiple lines of text, press Ctrl + Enter to finish typing Output: Standardize by, rearranging lines in the right order of increasing time. I was tried but I don't know how to catch Ctrl + Enter from keyboard: I expect the output like Example: “Created at 28/02/2018 10:15:35 AM by Andy. Updated at 03/03/2018 02:45:10 PM by Mark Clear name at 02/03/2018 11:34:05 AM by Andy” DateTime is needed rearranging 回答1: You need