Skip to content

Finding previous controls

R ON

Asked Aug 16, 2011, 3:35 AM EDT1 answer
Share
LinkedInX
I have a line which finds the name of the last control / button to be pressed:

this.ActiveControl.Name
and this string is used to go to a bookmark on a website. Eg. documentation.htm#ControlName

But what if the last button pressed isn't a bookmark in the html file? Can I find the button that was pressed before that, and before that? 

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    In the click events of all your buttons, you could keep track of the time the button was pressed.
    0