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?

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.