ray dona

ray dona

  • NA
  • 29
  • 0

return form to its original state

Apr 8 2008 12:53 PM

Hi,

I have a placed a button control and a textbox on a form. I have also placed a timer control on form. When the form is first loaded the textbox is hidden. When the button is clicked the textbox is made visible. This is coded into the button’s click event. If nothing is entered into the textbox within, say, 10 seconds I would like the form to return to its original state with the textbox hidden, timer control set to zero and the button waiting to be clicked. How might I do that? Is there a property that will return the form to its original state, that is, when the form was first loaded.  Incidentally, how would I dispose of a form? I would be grateful for all help.


Answers (1)