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

Can nobody help me?

Sorry to bump my own thread, but I really need to know how to do this :(

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.