DESCRIPTION:
Print Multiplication Table into ListBox & take value using Numeric up down.
CODEING:
Print Multiplication Table into ListBox & take value using Numeric up down.
CODEING:
Public Class Form1
Private Sub NumericUpDown1_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown1.ValueChanged
ListBox1.Items.Clear()
Dim i As Integer
For i = 1 To 10
ListBox1.Items.Add(NumericUpDown1.Value & " * " & i & " = " & (NumericUpDown1.Value * i))
Next
End Sub
End Class
DESIGNING:Private Sub NumericUpDown1_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown1.ValueChanged
ListBox1.Items.Clear()
Dim i As Integer
For i = 1 To 10
ListBox1.Items.Add(NumericUpDown1.Value & " * " & i & " = " & (NumericUpDown1.Value * i))
Next
End Sub
End Class
Comments
Post a Comment