Nishant Orignal Copy
Nishant Orignal Copy
(Output)
Q1. Design an application to change color of the form.
End Class
Q5. Design an application to make use of timer control to change color
of the form.
(Output)
Q5. Design an application to make use of timer control to change color
of the form.
End Class
Q6. Design an application, using track bar, (numeric up-down).
(Output)
Q6. Design an application, using track bar, (numeric up-down).
TrackBar1.Value = NumericUpDown1.Value
ProgressBar1.Value = NumericUpDown1.Value
End Sub
End Class
Q3. Design an application to compute the factorial of the number.
(Output)
Q3. Design an application to compute the factorial of the number.
End Class
Q2. Design an application to represent menu of the restraunt, display
the rate list & generate the bill.
(Output)
Q2. Design an application to represent menu of the restraunt, display
the rate list & generate the bill.
Dim a As Integer
a=0
If(Chk1.checked=True) Then
a=a+55
End If
If(Chk2.checked=True) Then
a=a+48
End If
If(Chk3.checked=True) Then
a=a+100
End If
If(Chk4.checked=True) Then
a=a+40
End If
If(Chk5.checked=True) Then
a=a+80
End If
If(Chk6.checked=True) Then
a=a+60
End If
If(Chk7.checked=True) Then
a=a+55
End If
If(Chk8.checked=True) Then
a=a+48
End If
If(Chk9.checked=True) Then
a=a+80
End If
If(Chk10.checked=True) Then
a=a+100
End If
If(Chk11.checked=True) Then
a=a+40
End If
If(Chk12.checked=True) Then
a=a+60
End If
If(Chk13.checked=True) Then
a=a+55
End If
If(Chk14.checked=True) Then
a=a+48
End If
If(Chk15.checked=True) Then
a=a+80
End If
If(Chk16.checked=True) Then
a=a+100
End If
If(Chk17.checked=True) Then
a=a+40
End If
If(Chk18.checked=True) Then
a=a+60
End If
Label1.Text=a
Msgbox(“Your Bill is: “+Label1.Text)
End Sub
Q9. Design an application to show the connectivity with the database…
(ms..access)
(Output)
Q9. Design an application to show the connectivity with the database…
(ms..access)
Imports System.Data.OleDb
Public Class Form1
Inherits System.Windows.Forms.Form
Dim MyConnection As New
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Nis.mdb")
Dim MyCommand
Dim e As Exception
Dim MyCommand2
Dim MyReader As OleDbDataReader
Dim MyReader2 As OleDbDataReader
Dim dbset As New DataSet
End Sub
End Class
Q8. Design an application having menu <size, color> to reflect
corresponding changes to the form.
(Output)
Q8. Design an application having menu <size, color> to reflect
corresponding changes to the form.
End Class
Q4. Design an application Form.
(Output)
Q4. Design an application Form.
End Class
Q7. Design a Dialogue box.
(Output)
Q7. Design a Dialogue box.
End Class