Results 1 to 6 of 6

Thread: Problem

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2007
    Posts
    192

    Problem

    vb.net Code:
    1. Private Sub TextBox5_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox5.KeyPress
    2. If e.KeyChar = Microsoft.VisualBasic.Chr(27) Then
    3.             ComboBox1.Focus()
    4.             Exit Sub
    5.         End If
    6.    
    7.         If e.KeyChar = Microsoft.VisualBasic.Chr(13) Then
    8.             If IsNumeric(TextBox5) Then
    9.            
    10.             End If
    11.             TextBox6.Focus()
    12.         End If
    13.         'End If
    14.         Exit Sub
    15. end sub
    This program shows me error ,all i need is to textbox5 when i write some number into ,and press enter goes to textbox6 and shows me like money(1523 money i spend)- textbox5(i write number like 2000 ,money i gave)=textbox6(cash 473):sorry on my bad english
    Last edited by Hack; Nov 12th, 2007 at 08:15 AM. Reason: Added Highlight Tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width