Question: For this coding exercise: Open the VB2015Chap06MultiplicationSolution(MultiplicationSolution.sln) file. Code the application to display a multiplication table similar to the one shown in Figure 6-31 (Zak,

For this coding exercise:

Open the VB2015\Chap06\MultiplicationSolution(MultiplicationSolution.sln) file.

Code the application to display a multiplication table similar to the one shown in Figure 6-31 (Zak, 2016).

Use the For...Next statement in the btnForNext_Click procedure, and use the Do...Loop statement in the btnDoLoop_Click procedure. Test the application appropriately.

' Name: Multiplication Project ' Purpose: Display a multiplication table that shows ' the multiplicand, multiplier, and product ' Programmer: on

Option Explicit On Option Strict On Option Infer Off

Public Class frmMain

Private Sub btnDoLoop_Click(sender As Object, e As EventArgs) Handles btnDoLoop.Click ' displays a multiplication table

End Sub

Private Sub btnForNext_Click(sender As Object, e As EventArgs) Handles btnForNext.Click ' displays a multiplication table

End Sub

Private Sub txtNumber_Enter(sender As Object, e As EventArgs) Handles txtNumber.Enter txtNumber.SelectAll() End Sub

Private Sub txtNumber_KeyPress(sender As Object, e As KeyPressEventArgs) Handles txtNumber.KeyPress ' allows only numbers and the Backspace

If (e.KeyChar < "0" OrElse e.KeyChar > "9") AndAlso e.KeyChar <> ControlChars.Back Then e.Handled = True End If End Sub

Private Sub txtNumber_TextChanged(sender As Object, e As EventArgs) Handles txtNumber.TextChanged lblTable.Text = String.Empty End Sub

Private Sub btnExit_Click(sender As Object, e As EventArgs) Handles btnExit.Click Me.Close() End Sub

Private Sub frmMain_Load(sender As Object, e As EventArgs) Handles MyBase.Load

End Sub End Class

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!