
If you know Qbaisc and VB4.0 HELP
Quote:
>John,
>I think that this,
>> pwd$ = ""
>> do until pwd$ = "2344"
>> pwd$ = text1.text
>> loop
>> form2.load
>would, if entered in a button_click event would just sit there.
>If entered in the text_change event it would, on the first keystroke,
>lockup the system (You'd need a DoEvent in there to process additional
>keystrokes).
>If the UI is "type then push the button" then on the button_click event
>just enter
> if text1.text = "2344" then form2.show
>If the UI is more dynamic (launch the form as soon as the right pwd is
>typed), then do the same line of code on the text1_change event. As soon
>as they hit that second '4', bang! the form loads.
>A major probem with either of these approaches is that the pwd is in the
>code. Even compiled, the pwd will be visible to any decent browser.
>Need to throw a one-way-hash function in there and save the results to
>the registry. Then, when the pwd is reentered, run the same function
>and compare that to what was found in the registry.
>Bill
I won't disagree with anything you said, but the presentation of the
original message indicates the poster is not looking for serious
password protection, and he appears to need some experience doing
research in the Help file, if not in the manual ;-)
Visit my source code page at http://www.mindspring.com/~johnecarter
Visit my favorite school at http://www.mindspring.com/~addison
Get PR-Tracker -- tracks problem reports, defects, bugs
INFORMATION: http://www.prtracker.com/info.html
DOWNLOAD: http://www.prtracker.com/download.html