Wrox Programmer Forums
|
BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5
This is the forum to discuss the Wrox book Beginning Visual Basic 2005 Databases by Thearon Willis; ISBN: 9780764588945
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 31st, 2006, 03:18 AM
Registered User
 
Join Date: Oct 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Login Form

Hi
 I am building an application and as part of it I am implementing a login form as described in the book.

The code I have is copied directly from the text book with the only modifications being some names.

If I type in a User name and a password and then click ok, the code goes away and validates the user correctly. However, then it just sits there. Looking at your sample code, I don't see what is supposed to happen?, that is, int the btn_ok click event, there is no code to close the form down... I am obviously missing something here.

It will only work correctly if I type in the userid and then the password and then hit the "Enter Key".

Also, while I see code that counts the number of times a user attempts to login, there doesnt appear to be any event to verify more than 3 attempts and close the form down?

The code I am referring too is in chapter 12, pages 404 - 406.

I have looked through the errata and there is nothing that I can see there. Do you have any idea as to what I am missing?

thanks

 
Old November 1st, 2006, 01:44 AM
Registered User
 
Join Date: Oct 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok, after lots of fiddling around I have created the database and got the code working as downloaded from this site.

In the example code, after pressing ok, the code goes through and validates the user etc etc...

Then at the end of the btn_ok event, it does all the dispose routines.

Then for some reason it raises the form closing event.

So yours works fine. However I have all the same code, sam classes, same disposing events, yet my form_closing event doesnt fire???

The login form I am using is auto generated from the template (ie add new item --> login form).

Is there a setting on this form I need to set?

Very confused, has anyone got any ideas?

thanks


 
Old November 1st, 2006, 06:54 AM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

You'll need to set the DialogResult property for the OK and Cancel buttons in the designer.

Thearon
 
Old November 3rd, 2006, 01:01 AM
Registered User
 
Join Date: Oct 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks! :)






Similar Threads
Thread Thread Starter Forum Replies Last Post
Login form haswalt VB Databases Basics 3 June 25th, 2007 12:27 AM
Basic Login Form agleave VB How-To 4 February 26th, 2007 11:59 AM
Login form cetin BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 3 May 15th, 2006 09:02 AM
Student login form aaronjaf Access 1 May 8th, 2006 03:29 AM
Login form question Jams30 PHP Databases 1 December 4th, 2003 12:10 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.