I am writing a program and want to have a a file loaded to be written to a specific location on the drive when an option is selected in a combobox. Here is the code that I have:
Private Sub ComboBox5_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox5.SelectedIndexChanged
If ComboBox2.Text = "option" Then
ComboBox5.Items.Add("File")
If ComboBox5.Text = "File" Then
loadfile.reasources.ep3()
End If
End If
End Sub
End Class