Using the same control code for two seperate controls
I hope that title is descriptive enough.
I was showing one of my apps to my coworkers and they offered a little feedback. Basically the user fills out a form and hits the "submit" button. My boss suggested that there should be a submit button on the top as well as the bottom since the form is rather long and people that use lower resolutions might have to scroll down. Rather than argue with my boss, I'll do it.
about 75% of my code is under the submit button control handler. I'd really rather not just cut and paste because that makes maintainabilty a pain. Is there a way to call the same code, without using a module, in a seperate control handler?
I was just going to put in:
Button7_Click()
but they want two parameters to be passed with it. What should I pass? The full declaration is:
Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click