Backspace is not working in c#???

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rajkumar K
    New Member
    • Mar 2011
    • 2

    Backspace is not working in c#???

    Hi,I am developing windows application using c#.
    i have placed the textbox in 6thpanel of my application.whe n im pressing backspace in keyboard it will delete only one char.
    when im holding backspace also it was delete only one char.
    I was written following code in keyup event

    if (e.KeyData == Keys.Back)
    {
    SendKeys.Send(" +{BS}");

    SendKeys.Send(" {BREAK}");
    e.handled=true;
    }
    iwas tried in keydown event and keypressevent also.it was not working.

    it was working normal backspace function when im pressing shift+backspace .


    could ypu pls give me the solution asap.Thanks in advacne
Working...