Lets say that you have 1 text box where you want to display the number of the selected pushbutton called textbox1.
First, remove the panel and put all of the pushbuttons in a button group. You can do it the other way but it is more of a pain. Lets call the button group pushbtngrp (and the...