Dot Net Framework
A)
Write ASP.Net application to create a user control that contains a list of
colors. Add
a
button to the Web Form which when clicked changes the color of the form to the
color
selected from the list.
Answer :
Public Class Form1
Private Sub RedToolStripMenuItem_Click(sender
As Object, e As EventArgs) Handles RedToolStripMenuItem.Click
Me.BackColor = Color.Red
End Sub
Private Sub
GreenToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles GreenToolStripMenuItem.Click
Me.BackColor = Color.Green
End Sub
Private Sub
BlueToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles BlueToolStripMenuItem.Click
Me.BackColor = Color.Blue
End Sub
End Class
Output :
B)
Write a C#.Net Program to accept and display ‘n’ customer’s details such as
customer_no,
Name, address ,itemno, quantity price . Display total price of all item.
Answer :
No comments:
Post a Comment