c# - Why SendKeys.SendWait() crashes my application -


in console application, sendkeys.sendwait("^c") called copy selected text clipboard.

it works fine, if console application has focus when called, then, instead of throwing exception, closes application. , after things start acting up, mouse wheel affecting zoom instead of scrolling , down.

why dose happen.

ctrl+cis signal console window close.

and reason mouse wheel affecting zoom after closes because application never got chance release ctrl key.

this can fixed changing consolemode or changeing console.treatcontrolcasinput property.

thanks help


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

Bubble Sort Manually a Linked List in Java -

asp.net mvc - SSO between MVCForum and Umbraco7 -