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" Try Process.Start(kane) Catch ex As Exception MessageBox.Show(System.Runtime.InteropServices.Marshal.GetLastWin32Error()) MessageBox.Show(kane) End Try End Sub