Screwbacon's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
New Members
Active Posts:
1 (0 per day)
Joined:
17-January 13
Profile Views:
654
Last Active:
User is offline Jan 18 2013 07:02 AM
Currently:
Offline

Previous Fields

Country:
NO
OS Preference:
Windows
Favorite Browser:
FireFox
Favorite Processor:
AMD
Favorite Gaming Platform:
XBox
Your Car:
Subaru
Dream Kudos:
0
Icon   Screwbacon has not set their status

Posts I've Made

  1. In Topic: [WalkThrough] UserNames & Password Database

    Posted 17 Jan 2013

    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

My Information

Member Title:
New D.I.C Head
Age:
30 years old
Birthday:
January 3, 1984
Gender:
Full Name:
Kenneth Skredderbakken

Contact Information

E-mail:
Click here to e-mail me
Facebook:
http://facebook.com/skrevbeiken

Friends

Comments

Screwbacon has no profile comments yet. Why not say hello?