VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

When Key Press =,+, is pushed in textbox puts currentdate, adds 1 day, subtracts 1 day

William McKown  (1 Submission)   Files/File Controls/Input/Output   Visual Basic 5.0   Beginner   Wed 3rd February 2021

This code is a input feature that shows how to take a keypress on a textbox and either add, subtract or set current date. + key will add 1 day, - will subtract ond day, and = sets current date. This helps with getting dates from users.

Assumes
Just open a new project, add a text box and paste code. Enjoy

Rate When Key Press =,+, is pushed in textbox puts currentdate, adds 1 day, subtracts 1 day (4(4 Vote))
When Key Press =,+, is pushed in textbox puts currentdate, adds 1 day, subtracts 1 day.bas

When Key Press =,+, is pushed in textbox puts currentdate, adds 1 day, subtracts 1 day Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters