Public Class lat4Hitung
Dim tekan As Boolean
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If tekan = True Then
TextBox3.Text = hasiltambah
TextBox3.Text = hasilkurang
TextBox3.Text = hasilkali
TextBox3.Text = hasilbagi
End If
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
MessageBox.Show("Apakah Anda Yakin Keluar", "Exit", MessageBoxButtons.OKCancel).ToString()
End
End Sub
Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
If e.KeyChar = Chr(13) Then
TextBox2.Focus()
End If
End Sub
Private Sub TextBox2_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox2.KeyPress
If e.KeyChar = Chr(13) Then
Button1.Focus()
End If
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
h = TextBox1.Text
b = TextBox2.Text
Call hitung()
tekan = True
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
h = TextBox1.Text
b = TextBox2.Text
Call hitung()
tekan = True
End Sub
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
h = TextBox1.Text
b = TextBox2.Text
Call hitung()
tekan = True
End Sub
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
h = TextBox1.Text
b = TextBox2.Text
Call hitung()
tekan = True
End Sub
Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click
Call tampilnama()
TextBox4.Text = nama
End Sub
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
End Sub
End Class
Diposting oleh
Akbar Hashemi Rafsanjani
0 komentar:
Posting Komentar