Shift+Tab Behaviour In Backspace

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • maheshwag
    New Member
    • Aug 2010
    • 71

    #1

    Shift+Tab Behaviour In Backspace

    Software Utilize: C#, VS-2005

    I wants Shift+Tab behavior into Backspace.

    My Following Code almost done it but there is little fault See. :
    Code:
    private void Form1_KeyDown(object sender, KeyEventArgs e)
            {
                if (e.KeyCode == Keys.Tab && e.Shift) 
                {
    
                }
    
                else if (e.KeyCode == Keys.Back) 
                {
                    SendKeys.Send("+{tab}");
                }
            }
    it's shows that backspace will behave like Shift+Tab but there is little problem is it's cut last characters into the current object like textbox.

    How to overcome?.
  • maheshwag
    New Member
    • Aug 2010
    • 71

    #2
    I found Solution and same share with you.

    Code:
    private void Form1_KeyDown(object sender, KeyEventArgs e)
            {
                if (e.KeyCode == Keys.Tab && e.Shift) 
                {
     
                }
     
                else if (e.KeyCode == Keys.Back) 
                {
                    SendKeys.Send("+{tab}");
                    e.suppresskeypress;
    
                }
    
            }
    Now the Backspace behave like Shift+Tab.

    Comment

    Working...