Dot Net Framework
A)
Write a VB.NET program to accept a number from user through input box and
display
its multiplication table into the list box.
Answer :
Public Class Form1
Dim a As Integer
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim a As Integer
a = TextBox1.Text
For b = 1 To 10
ListBox1.Items.Add(a * b)
Next
Console.ReadLine()
End Sub
End Class
Output :
B)
Write ASP.Net program containing the following controls:
•
ListBox
•
Button
•
Image
•
Label
The
listbox is used to list items available in a store. When the user clicks on an
item
in the listbox, its image is displayed in the image control. When the user
clicks the
button,
the cost of the selected item is displayed in the control.
Answer :
Output :
No comments:
Post a Comment