Vbnetlab 221219084537 D10dbef6
Vbnetlab 221219084537 D10dbef6
Vbnetlab 221219084537 D10dbef6
Net Programs
Prof. K. Adisesha 1
VB.Net Programs
Output:
Prof. K. Adisesha 2
VB.Net Programs
Code:
Public Class Form1
Private Sub Label2_Click(sender As Object, e As EventArgs) Handles Label2.Click
End Sub
End Sub
Output:
Prof. K. Adisesha 4
VB.Net Programs
P = principleText.Text
R = rateText.Text
n = timeText.Text
compText.Text = P * (1 + (R / 100)) ^ n - 1
End Sub
Prof. K. Adisesha 5
VB.Net Programs
Output:
Prof. K. Adisesha 6
VB.Net Programs
Code:
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
End Sub
Prof. K. Adisesha 7
VB.Net Programs
Output:
Prof. K. Adisesha 8
VB.Net Programs
Code:
Prof. K. Adisesha 9
VB.Net Programs
Output:
Prof. K. Adisesha 10
VB.Net Programs
Prof. K. Adisesha 11
VB.Net Programs
setStyle()
End Sub
End Class
Output:
Prof. K. Adisesha 12
VB.Net Programs
Code:
Public Class Form1
Private Sub dispBtn_Click(sender As Object, e As EventArgs) Handles dispBtn.Click
MsgBox("These are the following details entered: " + vbCrLf + " Name:" + nameText.Text + vbCrLf
+ "Course:" + courseCombo.Text + vbCrLf + "Semester:" + semCombo.Text + vbCrLf + "Marks:" +
marksText.Text, vbOKOnly)
End Sub
Prof. K. Adisesha 13
VB.Net Programs
Output:
Prof. K. Adisesha 14
VB.Net Programs
Code:
Note: Follow the following steps:
➢ Provide MySQL password
➢ Create a Database and provide DB name in Inputbox.
➢ Login table will be created with the given Name in Inputbox
Imports System.Data.Odbc
Prof. K. Adisesha 15
VB.Net Programs
Sub Open()
cmdCreate.ExecuteNonQuery()
End Sub
Private Sub createBtn_Click(sender As Object, e As EventArgs) Handles createBtn.Click
Try
End Sub
Prof. K. Adisesha 16
VB.Net Programs
End Sub
End Class
Output:
Prof. K. Adisesha 17
VB.Net Programs
Output:
Prof. K. Adisesha 18
VB.Net Programs
Prof. K. Adisesha 19