|
Subject:
|
textfield
|
|
Posted By:
|
damnnono_86
|
Post Date:
|
10/27/2003 4:01:43 AM
|
hi,
i have a form with a textfield and a command button. how can i detect if the user has entered anything to the textfield before i actually anabled the command button. i did not use got focus as i have gave the focus to the textfield when the form first loaded. i too did not use after update as after the user have to hit the enter then the command button will be enabled.
is there a way to detect that at least one char is entered to the field then the command button will be enabled?
pls advice nono
|
|
Reply By:
|
stoneman
|
Reply Date:
|
10/27/2003 5:22:41 AM
|
use the OnKeyDown event
|
|
Reply By:
|
SerranoG
|
Reply Date:
|
10/27/2003 9:24:17 AM
|
You could keep the button disabled and then enable it on the textbox's "On Dirty" Event. On the textbox's "AfterUpdate" event, check to make sure the user didn't enter nothing into the box (i.e. started typing and then erased it), and if so, disable the button again.
Greg Serrano Michigan Dept. of Environmental Quality, Air Quality Division
|