260 pts.
 Visual Studio code help
here is my 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}");
            }
        }
I have done it almost but there is little problem is that it's delete last characters in object like textbox and setfocus to previous textbox.
I don't won't to delete any character within object and move to previous object. as usual Shift+Tab does.


Software/Hardware used:
C#, VS-2005
ASKED: September 21, 2010  11:25 AM
UPDATED: September 21, 2010  4:39 PM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Maheshwag, why don’t you tell us what is exactly what you are trying to do ? what exactly is this code supposed to do ?

And, please, provide enough details.

 63,535 pts.

 

The above code is for convert Shift+Tab behavior to backspace

See Shift+Tab Behavior is move to previous object from current without delete any character from it. if object is textbox1,textbox2.

If my Cursor on textbox2 then when i press backspace it should move to textbox1 without deleting any single character/string from textbox2.

 260 pts.

 

Here is the Solution For That :

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=true;
            }

        }

I have found the solution for that and completed as above. Now Backspace completly behave like Shift+Tab Key.

 260 pts.