Write a Vb.net program to accept a number from an user through InputBox and display its multiplication table into the ListBox.

Slip No 4

Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        ListBox1.Items.Clear()
        Dim n As Integer
        Dim i As Integer
        n = InputBox("Enter Number to create table")
        For i = 1 To 10
            ListBox1.Items.Add(i * n)
        Next
    End Sub
End Class

Comments

Post a Comment

Popular posts from this blog

Write a Vb.net program to accept a character from keyboard and check whether it is vowel or not. Also display the case of that character.

Write a Vb.net program to check whether entered string is palindrome or not.

Write a Vb.net program for blinking an image.