Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Bodim.lk out now !
Manoj Suranga Bandara
Updated:
Yesterday at 3:05 AM
Power Lifting Lever Belt
SkullVamp
Updated:
Jun 13, 2026
Ad icon
port.lk Domain for sale
Lankan-Tech
Updated:
Jun 13, 2026
Colombo
Kaduwela - Two Storey House for Sale
dilrasan
Updated:
Jun 11, 2026
Ad icon
Wechat qr verification
Pawan2005
Updated:
Jun 11, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
VB.NET
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="cm2004cm4ever" data-source="post: 6973076" data-attributes="member: 120594"><p><img src="http://img514.imageshack.us/img514/9112/65070401.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p></p><p><img src="http://img704.imageshack.us/img704/9030/77383518.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p></p><p><img src="http://img708.imageshack.us/img708/5775/93227771.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><span style="font-family: 'Courier New'"><span style="font-size: 18px"></span></span></p><p><span style="font-family: 'Courier New'"><span style="font-size: 18px"><a href="http://www.ziddu.com/download/8939329/StudentRegistration.zip.html" target="_blank"><strong>http://www.ziddu.com/download/8939329/StudentRegistration.zip.html</strong></a></span></span></p><p></p><p></p><p></p><p>Public Class Form1</p><p></p><p> Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load</p><p> Dim spYear = 1970, spDate = 1</p><p> While (spYear <= 2010 And spDate <= 31)</p><p> Me.cmbYear.Items.Add(spYear)</p><p> Me.cmbDate.Items.Add(spDate)</p><p> spYear += 1</p><p> spDate += 1</p><p> End While</p><p> RegistrationTableAdapter1.Update(DatabaseDataset1.registration)</p><p> End Sub</p><p></p><p> Private Sub chkMale_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles chkMale.Click</p><p> If Me.chkFemale.Checked = True Then</p><p> Me.chkFemale.Checked = False</p><p> Me.chkMale.Checked = True</p><p> Else : Me.chkMale.Checked = True</p><p> End If</p><p> End Sub</p><p></p><p> Private Sub chkFemale_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles chkFemale.Click</p><p> If Me.chkMale.Checked = True Then</p><p> Me.chkMale.Checked = False</p><p> Me.chkFemale.Checked = True</p><p> Else : Me.chkFemale.Checked = True</p><p> End If</p><p> End Sub</p><p></p><p> Private Sub txtTel_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtTel.TextChanged</p><p> If Not IsNumeric(txtTel.Text) Then</p><p> MsgBox("You can enter only numbers in this field.", MsgBoxStyle.Exclamation, "Warning")</p><p> Me.txtTel.Focus()</p><p> Me.txtTel.SelectionStart = txtTel.TextLength - 1</p><p> Me.txtTel.SelectionLength = txtTel.TextLength</p><p> End If</p><p> End Sub</p><p></p><p> Private Sub tmrBchk_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles tmrBchk.Tick</p><p> If Me.txtStud.TextLength > 0 And Me.txtAdd.TextLength > 0 And Me.txtEmail.TextLength > 0 And Me.txtTel.TextLength > 0 Then</p><p> If Me.chkMale.Checked = True Or Me.chkFemale.Checked = True Then</p><p> If Me.cmbDate.Text.Length > 0 And Me.cmbMonth.Text.Length > 0 And Me.cmbYear.Text.Length > 0 Then</p><p> Me.btnReg.Enabled = True</p><p> Else : Me.btnReg.Enabled = False</p><p> End If</p><p> End If</p><p> End If</p><p> End Sub</p><p></p><p> Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click</p><p> Dim msgExit = MsgBox("You are about close this application, are you sure you want to exit?", MsgBoxStyle.YesNo + MsgBoxStyle.Question + MsgBoxStyle.DefaultButton2, "Want to exit?")</p><p> If msgExit = vbYes Then</p><p> Me.Dispose()</p><p> End If</p><p> End Sub</p><p></p><p> Private Sub frmMain_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing</p><p> Dim msgExit = MsgBox("You are about close this application, are you sure you want to exit?", MsgBoxStyle.YesNo + MsgBoxStyle.Question + MsgBoxStyle.DefaultButton2, "Want to exit?")</p><p> If msgExit = vbYes Then</p><p> Me.Dispose()</p><p> Else : e.Cancel = True</p><p> End If</p><p> End Sub</p><p></p><p> Private Sub btnReg_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnReg.Click</p><p> Dim gender, dob As String</p><p> If chkMale.Checked = True Then</p><p> gender = "Male"</p><p> Else : gender = "Female"</p><p> End If</p><p> dob = Me.cmbDate.Text & "/" & Me.cmbMonth.Text & "/" & Me.cmbYear.Text</p><p> Dim newRow, chkRow As databaseDataset.registrationRow</p><p> chkRow = DatabaseDataset1.registration.Rows.Find(Me.txtStud.Text)</p><p> If chkRow Is Nothing Then</p><p> newRow = DatabaseDataset1.registration.newRow</p><p> newRow.sname = Me.txtStud.Text</p><p> newRow.gender = gender</p><p> newRow.address = Me.txtAdd</p><p> newRow.dob = dob</p><p> newRow.email = Me.txtEmail</p><p> newRow.tel = Me.txtTel</p><p> DatabaseDataset1.registration.AddregistrationRow(newRow)</p><p> RegistrationTableAdapter1.Update(DatabaseDataset1)</p><p> MsgBox("Record successfully added to database.", MsgBoxStyle.Information, "Success")</p><p> Else : MsgBox("This student name already exists.", MsgBoxStyle.Information, "Faild to add")</p><p> End If</p><p> End Sub</p><p>End Class</p></blockquote><p></p>
[QUOTE="cm2004cm4ever, post: 6973076, member: 120594"] [IMG]http://img514.imageshack.us/img514/9112/65070401.png[/IMG] [IMG]http://img704.imageshack.us/img704/9030/77383518.png[/IMG] [IMG]http://img708.imageshack.us/img708/5775/93227771.png[/IMG] [FONT=Courier New][SIZE=5] [URL="http://www.ziddu.com/download/8939329/StudentRegistration.zip.html"][B]http://www.ziddu.com/download/8939329/StudentRegistration.zip.html[/B][/URL][/SIZE][/FONT] Public Class Form1 Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim spYear = 1970, spDate = 1 While (spYear <= 2010 And spDate <= 31) Me.cmbYear.Items.Add(spYear) Me.cmbDate.Items.Add(spDate) spYear += 1 spDate += 1 End While RegistrationTableAdapter1.Update(DatabaseDataset1.registration) End Sub Private Sub chkMale_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles chkMale.Click If Me.chkFemale.Checked = True Then Me.chkFemale.Checked = False Me.chkMale.Checked = True Else : Me.chkMale.Checked = True End If End Sub Private Sub chkFemale_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles chkFemale.Click If Me.chkMale.Checked = True Then Me.chkMale.Checked = False Me.chkFemale.Checked = True Else : Me.chkFemale.Checked = True End If End Sub Private Sub txtTel_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtTel.TextChanged If Not IsNumeric(txtTel.Text) Then MsgBox("You can enter only numbers in this field.", MsgBoxStyle.Exclamation, "Warning") Me.txtTel.Focus() Me.txtTel.SelectionStart = txtTel.TextLength - 1 Me.txtTel.SelectionLength = txtTel.TextLength End If End Sub Private Sub tmrBchk_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles tmrBchk.Tick If Me.txtStud.TextLength > 0 And Me.txtAdd.TextLength > 0 And Me.txtEmail.TextLength > 0 And Me.txtTel.TextLength > 0 Then If Me.chkMale.Checked = True Or Me.chkFemale.Checked = True Then If Me.cmbDate.Text.Length > 0 And Me.cmbMonth.Text.Length > 0 And Me.cmbYear.Text.Length > 0 Then Me.btnReg.Enabled = True Else : Me.btnReg.Enabled = False End If End If End If End Sub Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click Dim msgExit = MsgBox("You are about close this application, are you sure you want to exit?", MsgBoxStyle.YesNo + MsgBoxStyle.Question + MsgBoxStyle.DefaultButton2, "Want to exit?") If msgExit = vbYes Then Me.Dispose() End If End Sub Private Sub frmMain_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing Dim msgExit = MsgBox("You are about close this application, are you sure you want to exit?", MsgBoxStyle.YesNo + MsgBoxStyle.Question + MsgBoxStyle.DefaultButton2, "Want to exit?") If msgExit = vbYes Then Me.Dispose() Else : e.Cancel = True End If End Sub Private Sub btnReg_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnReg.Click Dim gender, dob As String If chkMale.Checked = True Then gender = "Male" Else : gender = "Female" End If dob = Me.cmbDate.Text & "/" & Me.cmbMonth.Text & "/" & Me.cmbYear.Text Dim newRow, chkRow As databaseDataset.registrationRow chkRow = DatabaseDataset1.registration.Rows.Find(Me.txtStud.Text) If chkRow Is Nothing Then newRow = DatabaseDataset1.registration.newRow newRow.sname = Me.txtStud.Text newRow.gender = gender newRow.address = Me.txtAdd newRow.dob = dob newRow.email = Me.txtEmail newRow.tel = Me.txtTel DatabaseDataset1.registration.AddregistrationRow(newRow) RegistrationTableAdapter1.Update(DatabaseDataset1) MsgBox("Record successfully added to database.", MsgBoxStyle.Information, "Success") Else : MsgBox("This student name already exists.", MsgBoxStyle.Information, "Faild to add") End If End Sub End Class [/QUOTE]
Insert quotes…
Verification
Awruddata maasa keeyada?
Post reply
Top
Bottom