In VS2010 I have Form1, 9 textboxes (TextBox1, 2, 3...) and 1 Button (Button1). In the first 8 textboxes a number is entered. Button1 is then clicked and the sum is returned to TextBox9. Everything works fine.
I am trying to get the sum in TextBox9 to update as a user enters a number and TABS through the eight textboxes starting in TextBox1. Here is what I have with no luck:
Private Sub Form1_KeyUp(sender As Object, e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyUp Select Case e.KeyCode Case Keys.Tab Button1.PerformClick() End Select
Any help would be appreciated. Thanks.