VB.Net is far better anyways IMHO
Try this:
\n Private Sub filenameBrowseButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles filenameBrowseButton.Click\n If filenameDialog.ShowDialog() = DialogResult.OK Then\n filenameTextBox.Text = filenameDialog.FileName\n End If\n End Sub\n\n Private Sub addFilesButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles addFilesButton.Click\n Dim fileName As String\n\n If addFilesDialog.ShowDialog() = DialogResult.OK Then\n For Each fileName In addFilesDialog.FileNames\n filesListbox.Items.Add(fileName)\n Next\n End If\n End Sub\n\n Private Sub removeFilesButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles removeFilesButton.Click\n While filesListbox.SelectedIndices.Count > 0\n filesListbox.Items.RemoveAt(filesListbox.SelectedIndex)\n End While\n End Sub\n