Sir i have a question where can i find your Walkthrough about update and delete using table adapter configuration wizard just like your username and password database
[WalkThrough] UserNames & Password Database Picture Heavy. DataTableAdapter + Query
#17
Posted 17 January 2013 - 06:59 AM
Hi there, newbie here 
I tried to modify the code and put it in loginform1.vb instead, but i get a error when hitting OK:
Private Sub Ok_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click
Dim r = usersDataSet.UsersTableAdapter.ValidateUserNamePasswords(Me.UsernameTextBox.Text, Me.PasswordTextBox.Text)
If r Is Nothing Then
' UserName / Password wrong
MessageBox.Show("Feil brukernavn eller passord")
Else
' Valid Username & Password
MessageBox.Show("Welcome")
Me.Hide()
Form1.Show()
End If
End Sub
Returns when I click OK with and without correct username and password:
An unhandled exception of type 'System.NullReferenceException' occurred in Microsoft.VisualBasic.dll
Additional information: Objektvariabel eller "With"-blokkvariabel er ikke angitt. (translated from Norwegian, not neccesarely correct: Object variable or "with" block variable not set.
Anyone? Thanks
I tried to modify the code and put it in loginform1.vb instead, but i get a error when hitting OK:
Private Sub Ok_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click
Dim r = usersDataSet.UsersTableAdapter.ValidateUserNamePasswords(Me.UsernameTextBox.Text, Me.PasswordTextBox.Text)
If r Is Nothing Then
' UserName / Password wrong
MessageBox.Show("Feil brukernavn eller passord")
Else
' Valid Username & Password
MessageBox.Show("Welcome")
Me.Hide()
Form1.Show()
End If
End Sub
Returns when I click OK with and without correct username and password:
An unhandled exception of type 'System.NullReferenceException' occurred in Microsoft.VisualBasic.dll
Additional information: Objektvariabel eller "With"-blokkvariabel er ikke angitt. (translated from Norwegian, not neccesarely correct: Object variable or "with" block variable not set.
Anyone? Thanks
#18
Posted 07 March 2013 - 06:50 PM
where can i find your tutorial for update and delete sir? thanks in advance
|
|







MultiQuote


|