Vous êtes sur la page 1sur 3

CODING FOR FORM:

Public Class Form1 Dim Sales As Double Dim Modal As Double Dim Commission As Double Const Rate As Double = 0.05 Private Sub CalculateToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CalculateToolStripMenuItem.Click Sales = txtSalesPrice.Text Modal = txtModalPrice.Text Commission = Rate * (Sales - Modal) txtResultCommission.Text = Commission End Sub Private Sub ExitToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitToolStripMenuItem.Click Me.Close() End Sub Private Sub ClearToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ClearToolStripMenuItem.Click txtSalesPrice.Text = "" txtModalPrice.Text = "" txtResultCommission.Text = "" End Sub End Class

INTERFACE CONTAIN FILE :

INTERFACE CONTAIN EDIT :

OUTPUT INTERFACE :