Documente Academic
Documente Profesional
Documente Cultură
Imports
Imports
Imports
Imports
Imports
Imports
Imports
System.Collections.Generic
System.ComponentModel
System.Data
System.Drawing
System.Linq
System.Text
System.Windows.Forms
Else
timer1.Enabled = True
End Sub
Private Sub timer1_Tick(sender As Object, e As EventArgs)
progressBar1.Value = progressBar1.Value + 10
If progressBar1.Value >= 100 Then
timer1.Enabled = False
progressBar1.Visible = True
End If
End Sub
Me.Hide()
Dim obj As New MDI_Main_Form()
obj.Show()
Mdi form
Imports
Imports
Imports
Imports
Imports
Imports
Imports
System.Collections.Generic
System.ComponentModel
System.Data
System.Drawing
System.Linq
System.Text
System.Windows.Forms
fee
Imports
Imports
Imports
Imports
Imports
Imports
Imports
Imports
System.Collections.Generic
System.ComponentModel
System.Data
System.Drawing
System.Linq
System.Text
System.Windows.Forms
System.Data.OleDb
Student registration
Imports
Imports
Imports
Imports
Imports
Imports
Imports
Imports
System.Collections.Generic
System.ComponentModel
System.Data
System.Drawing
System.Linq
System.Text
System.Windows.Forms
System.Data.OleDb
End Sub
txtSNum.Text = ""
txtSID.Text = ""
txtFatherName.Text = ""
txtMotherName.Text = ""
txtFatherOccu.Text = ""
txtMotherOccu.Text = ""
dateTimePicker2.Text = ""
txtEmail.Text = ""
comCategary.Text = ""
comCriteria.Text = ""
txtFName.Focus()
GetId()
Catch generatedExceptionName As Exception
MessageBox.Show("sql exception")
End Try
End If
End Sub
Private Sub btnCencel_Click(sender As Object, e As EventArgs)
Me.Close()
End Sub
Private Sub txtFName_KeyPress(sender As Object, e As KeyPressEventArgs)
If Char.IsDigit(e.KeyChar) = True AndAlso Convert.ToInt32(e.KeyChar) <> 8 Then
e.Handled = True
End If
End Sub
Private Sub txtLName_KeyPress(sender As Object, e As KeyPressEventArgs)
If Char.IsDigit(e.KeyChar) = True AndAlso Convert.ToInt32(e.KeyChar) <> 8 Then
e.Handled = True
End If
End Sub
Private Sub txtRNum_KeyPress(sender As Object, e As KeyPressEventArgs)
If Char.IsDigit(e.KeyChar) = False AndAlso Convert.ToInt32(e.KeyChar) <> 8 Then
e.Handled = True
End If
End Sub
Private Sub TxtFNum_KeyPress(sender As Object, e As KeyPressEventArgs)
If Char.IsDigit(e.KeyChar) = False AndAlso Convert.ToInt32(e.KeyChar) <> 8 Then
e.Handled = True
End If
End Sub
Private Sub txtSNum_KeyPress(sender As Object, e As KeyPressEventArgs)
If Char.IsDigit(e.KeyChar) = False AndAlso Convert.ToInt32(e.KeyChar) <> 8 Then
e.Handled = True
End If
End Sub
End Class
Transport
Imports
Imports
Imports
Imports
Imports
Imports
Imports
Imports
System.Collections.Generic
System.ComponentModel
System.Data
System.Drawing
System.Linq
System.Text
System.Windows.Forms
System.Data.OleDb
End Sub
Private Sub Transport_Management_Load(sender As Object, e As EventArgs)
con = New OleDbConnection(db.dbo())
con.Open()
End Sub
Private Sub button1_Click(sender As Object, e As EventArgs)
End Sub
Private Sub button3_Click(sender As Object, e As EventArgs)
If rdoFMale.Checked = True Then
gen = "Male"
End If
If rdoFFemale.Checked = True Then
gen = "Female"
End If
Try
Dim cmd As New OleDbCommand("update transport set fName = '" &
txtFFirstName.Text & "', Lname = '" & txtFLastName.Text & "', address = '" & txtadress.Text & "',
Gender = '" & gen & "', Area = '" & txtArea.Text & "', busNo = '" & txtbusNo.Text & "', routeNo =
'" & txtroutNo.Text & "', buspass = '" & txtbuspass.Text & "', buspassNo = '" & txtbuspassNo.Text
& "', busfee = '" & txtBusFee.Text & "', picupPoint = '" & txtpicuppoint.Text & "', StopPoint = '" &
txtStopNo.Text & "', paidby = '" & comamount.Text & "' where studentid = '" & txtStuID.Text & "'",
con)
cmd.ExecuteNonQuery()
MessageBox.Show("updated successfully")
txtStuID.Text = ""
txtFFirstName.Text = ""
txtFLastName.Text = ""
txtadress.Text = ""
txtArea.Text = ""
txtbusNo.Text = ""
txtroutNo.Text = ""
txtbuspass.Text = ""
txtbuspassNo.Text = ""
txtBusFee.Text = ""
txtpicuppoint.Text = ""
txtStopNo.Text = ""
comamount.Text = "select.."
txtStuID.Focus()
Catch generatedExceptionName As Exception
MessageBox.Show("SQL Exception")
End Try
End Sub
Private Sub button1_Click_1(sender As Object, e As EventArgs)
Try
Dim cmd As New OleDbCommand("select * from Transport where
studentID = '" & txtStuID.Text & "'", con)
Dim dr As OleDbDataReader = cmd.ExecuteReader()
If dr.Read() Then
txtFFirstName.Text = dr("Fname").ToString()
txtFLastName.Text = dr("LName").ToString()
txtadress.Text = dr("Address").ToString()
gender1 = dr("Gender").ToString()
txtArea.Text = dr("Area").ToString()
txtbusNo.Text = dr("BusNo").ToString()
txtroutNo.Text = dr("RouteNo").ToString()
txtbuspass.Text = dr("BusPass").ToString()
txtbuspassNo.Text = dr("BusPassNo").ToString()
txtBusFee.Text = dr("BusFee").ToString()
txtpicuppoint.Text = dr("PicupPoint").ToString()
txtStopNo.Text = dr("StopPoint").ToString()
comamount.Text = dr("PaidBy").ToString()
If gender1 = "Male" Then
rdoFMale.Checked = True
End If
If gender1 = "Female" Then
rdoFFemale.Checked = True
End If
dr.Close()
End If
Catch generatedExceptionName As Exception
MessageBox.Show("record not found...")
End Try
End Sub
Private Sub button4_Click(sender As Object, e As EventArgs)
Try
Imports
Imports
Imports
Imports
Imports
Imports
Imports
Imports
System.Collections.Generic
System.ComponentModel
System.Data
System.Drawing
System.Linq
System.Text
System.Windows.Forms
System.Data.OleDb
Academic
Imports
Imports
Imports
Imports
Imports
Imports
Imports
Imports
System.Collections.Generic
System.ComponentModel
System.Data
System.Drawing
System.Linq
System.Text
System.Windows.Forms
System.Data.OleDb
End Sub
Private Sub textBox1_TextChanged(sender As Object, e As EventArgs)
End Sub
Private Sub pictureBox2_Click(sender As Object, e As EventArgs)
End Sub
Private Sub textBox6_TextChanged(sender As Object, e As EventArgs)
End Sub
Private Sub comboBox2_SelectedIndexChanged(sender As Object, e As EventArgs)
End Sub
Private Sub textBox11_TextChanged(sender As Object, e As EventArgs)
End Sub
Private Sub textBox15_TextChanged(sender As Object, e As EventArgs)
End Sub
Private Sub textBox19_TextChanged(sender As Object, e As EventArgs)
End Sub
Private Sub button1_Click(sender As Object, e As EventArgs)
End Sub
Private Sub groupBox2_Enter(sender As Object, e As EventArgs)
End Sub
Private Sub groupBox3_Enter(sender As Object, e As EventArgs)
End Sub
Private Sub AcademicDetails_Load(sender As Object, e As EventArgs)
con = New OleDbConnection(db.dbo())
con.Open()
com10thYear.Text = "select.."
com12year.Text = "select.."
GetId()
End Sub
Private Sub GetId()
Try
Dim a As Integer = 1
Dim cmd As New OleDbCommand("select max(id)+1 from academic", con)
Dim dr As OleDbDataReader = cmd.ExecuteReader()
If dr.Read() Then
If dr.IsDBNull(0) = False Then
a = Integer.Parse(dr.GetValue(0).ToString())
End If
txtsid.Text = "A00" & a
End If
Catch ex As OleDbException
'throw;
MessageBox.Show(ex.Message)
End Try
End Sub
Private Sub button4_Click(sender As Object, e As EventArgs)
End Sub
Private Sub button2_Click(sender As Object, e As EventArgs)
End Sub
Private Sub button3_Click(sender As Object, e As EventArgs)
End Sub
Private Sub button6_Click(sender As Object, e As EventArgs)
Me.Close()
End Sub
Private Sub textBox1_TextChanged_1(sender As Object, e As EventArgs)
End Sub
Private Sub button3_Click_1(sender As Object, e As EventArgs)
'if (txtname.Text == "" || txtSchName.Text = "")
'{
' MessageBox.Show("Please Fill All Required Fields !");
' return;
'}
Try
Dim cmd1 As New OleDbCommand()
cmd1.Connection = con
Dim dr As OleDbDataReader
'cmd1.CommandText = "select max(id)+1 from StudentRegi";
'dr = cmd1.ExecuteReader();
'if (dr.Read())
'{
' if (dr.IsDBNull(0) == false)
' {
'
rid = int.Parse(dr.GetValue(0).ToString());
' }
' else
' {
'
rid = 1;
' }
'}
'dr.Close();
Dim cmd As New OleDbCommand("insert into academic(RollNumber,
name,
schoolName, Address,
TenthMarks,
TenthPercentate,
TenthPassingYear,
TwelthMarks, TwelthPercentate,
TwelthPassingYear,
FirstSemTM, FirstSemMO,
FirstSemPer, SecondSemTM,
SecondSemMO,
SecondSemPer,
ThirdSemTM, ThirdSemMO, ThirdSemPer, ForthSemTM, ForthSemMO, ForthSemPer,
FifthSemTM, FifthSemMO, FifthSemPer, FirstToFifthPer, pics) values ('" & txtsid.Text &
"','" & txtname.Text & "','" & txtSchName.Text & "','" & txtaddress.Text & "','" & txt10marks.Text &
"','" & txt10per.Text & "','" & com10thYear.Text & "','" & txt12thMarks.Text & "','" & txt12per.Text &
"','" & com12year.Text & "','" & txt1stsemM.Text & "','" & txt1stsemMO.Text & "','" &
txt1stsemP.Text & "','" & txt2ndsemM.Text & "','" & txt2ndsemMO.Text & "','" & txt2ndsemP.Text &
"','" & txt3rdsem.Text & "','" & txt3rdsemMO.Text & "','" & txt3rdsemP.Text & "','" & txt4thsem.Text
& "','" & txt4thsemMO.Text & "','" & txt4thsemPer.Text & "','" & txt5thsem.Text & "','" &
txt5thsemMO.Text & "','" & txt5thsemPer.Text & "','" & txttottalPer.Text & "','" & lblimagepath.Text
& "')", con)
cmd.ExecuteNonQuery()
GetId()
MessageBox.Show("Data Saved succsessfully!")
hide()
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End Sub
Private Sub button6_Click_1(sender As Object, e As EventArgs)
Me.Close()
End Sub
Private Sub button5_Click_1(sender As Object, e As EventArgs)
Try
Dim ofd As New OpenFileDialog()
ofd.Filter = "images files(*.jpg;*.jpeg;*.png;*.gif;*bmp)|*.jpg;*.jpeg;*.png;*.gif;*.bmp"
If ofd.ShowDialog() = DialogResult.OK Then
picF.Image = New Bitmap(ofd.FileName)
picF.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
lblimagepath.Text = ofd.FileName.ToString()
End If
Catch ex As OleDbException
'throw;
MessageBox.Show(ex.Message)
End Try
End Sub
Private Sub txt1stsemMO_KeyDown(sender As Object, e As KeyEventArgs)
If e.KeyCode = Keys.[Return] Then
Dim n1 As Integer, n2 As Integer, total As Integer
n1 = Convert.ToInt32(txt1stsemM.Text)
n2 = Convert.ToInt32(txt1stsemMO.Text)
total = n2 * 100 \ n1
txt1stsemP.Text = total.ToString()
txt2ndsemM.Focus()
End If
End Sub
Private Sub txt1stsemP_TextChanged(sender As Object, e As EventArgs)
End Sub
End Sub
Private Sub txt4thsemPer_KeyPress(sender As Object, e As KeyPressEventArgs)
If Char.IsDigit(e.KeyChar) = False AndAlso Convert.ToInt32(e.KeyChar) <> 8 Then
e.Handled = True
End If
End Sub
Private Sub txt5thsem_KeyPress(sender As Object, e As KeyPressEventArgs)
If Char.IsDigit(e.KeyChar) = False AndAlso Convert.ToInt32(e.KeyChar) <> 8 Then
e.Handled = True
End If
End Sub
Private Sub txt5thsemMO_KeyPress(sender As Object, e As KeyPressEventArgs)
If Char.IsDigit(e.KeyChar) = False AndAlso Convert.ToInt32(e.KeyChar) <> 8 Then
e.Handled = True
End If
End Sub
Private Sub txt5thsemPer_KeyPress(sender As Object, e As KeyPressEventArgs)
If Char.IsDigit(e.KeyChar) = False AndAlso Convert.ToInt32(e.KeyChar) <> 8 Then
e.Handled = True
End If
End Sub
Private Sub txttottalPer_KeyPress(sender As Object, e As KeyPressEventArgs)
If Char.IsDigit(e.KeyChar) = False AndAlso Convert.ToInt32(e.KeyChar) <> 8 Then
e.Handled = True
End If
End Sub
Private Sub txt2ndsemMO_KeyDown(sender As Object, e As KeyEventArgs)
If e.KeyCode = Keys.[Return] Then
Dim n1 As Integer, n2 As Integer, total As Integer
n1 = Convert.ToInt32(txt2ndsemM.Text)
n2 = Convert.ToInt32(txt2ndsemMO.Text)
total = n2 * 100 \ n1
txt2ndsemP.Text = total.ToString()
End If
End Sub
txt3rdsem.Focus()
End If
End Sub
n2 = Convert.ToInt32(txt4thsemMO.Text)
total = n2 * 100 \ n1
txt4thsemPer.Text = total.ToString()
End Class
Student registration
Academic
Admission fee
Fee