I have tried with Keybo开发者_StackOverfloward.Sendkeys(“{BACKSPACE}”); but it didn’t work.
http://msdn.microsoft.com/en-us/library/fx2k26ca(VS.90).aspx
// this sends the backspace command
My.Computer.Keyboard.SendKeys({BACKSPACE}, True);
You are probably sending {BACKSPACE}
as a string.
Please try this
It works in my Visual studio 2012
Keyboard.SendKeys(uIItemEdit, "{back}", ModifierKeys.None);
精彩评论