PDA

View Full Version : Help with VB .NET


Marwan
04-16-04, 02:52 PM
Create a login form that has text boxes for entering a user name and password. Identified each with a label. Add OK and Cancel buttons to the form. The OK button should be disabled. Write code in the Change events of both text box controls so that if both the username and the password boxes are not a zero length string ( = "") then the OK button should be enabled. When the user clicks the OK button, the application should show a second form that represent the screen the user would see after logging in.


I have an assignment and i cant figure iut how to change the evnt... i need a lol push up please :)

EvilHaider
04-19-04, 08:21 PM
Have you gotten started? How far are you along and where exactly do you need help?

Marwan
04-20-04, 01:55 PM
Well createrd the forum and had the stuff, now i know that you can disable the ok by locking it BUT i dunno how to unlock it using a code!

I GUESS the statment shall be

If text1.text = zero then .....
If text1.text <> then ...

right?

and this is where im stuck!!