Button control to enter time in a text field

mkelly

Registered User.
Local time
Today, 14:43
Joined
Apr 10, 2002
Messages
213
Does anyone know how to use a button, so that once it is clicked it places the time() into a text field and cannot be edited???

Any help appriciated!!

Thanks
 
i was wondering about the time function too
 
In the button's Click event put the code:


txtYourTextBoxHere = Time()


If you want to disable the box from data entry use:


txtYourTextBoxHere.Enabled = False
txtYourTextBoxHere.Locked = True
 
i tried that before and it gave me an error. But now it worked... oh well it works now
 
or just lock it in the fields properties

Col
:cool:
 
And if you are going to disable the button and it has the focus, be sure to move the focus to another control first.
 

Users who are viewing this thread

Back
Top Bottom