I know this is a rather simplistic question but I suddenly realised that I didn't know if there was a correct way of doing this:

On one form i have 5 buttons. Clicking on any of them opens a second form. Depending on which button is clicked however different content will be shown on the 2nd form (there are 5 different tablelayout panels, one of which will be made visible and docked and I hide the other 4).

Is there a correct way of doing this?? I was just going to record some string value on button click and on form load of the 2nd Form do a select case statement for the variable value but wondered if there's a better way?