I'm currently in the process of creating a Windows application much like "Steam".

The problem I'm having is that I need to be able to add new games to the list which auto generates a button and the code behind it. I have no idea how to do this.

Can anyone help me?

Below is the code I used behind the buttons:

Private Sub btn_KaneLynch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnKaneLynch.Click

        Dim kane As String = "C:\Program Files (x86)\Steam\steamapps\common\kane and lynch dead men\Launcher.exe"


        Catch ex As Exception
        End Try

    End Sub