• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 184
  • Last Modified:

Hide controls on a form based on a timer

I have a form that when loaded has a couple of controls hidden until a button on a form is double clicked, then I set those controls .visible propert to true.  I need those .visible properties to revert back to false after a period of time say 1-2 minutes.  How can I make those controls hide again on a timer?  The data in those fields is credit card info and I don't want that data availble if a person walks away from their desk for any significant length of time.  I would prefer not to close the whole database, just hide the controls...
1 Solution
In the form_timer event procedure you would do:

me.controlmnamehere.visible = false

for each control.

In the Form's Timer interval property set it to 60000 for 1 minute or 120000 for 2 minutes
evel1959Author Commented:
Thanks so much, it was much easier than I was expecting it to be.

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now