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

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -