I am trying to work with two radio buttons in a simple VB.net app that allows a user to select and open a PDF using the Process object. One PDF will be assigned to each radio button. Here is the code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdOK.Click
If RadioButton1.Checked = True Then
'Use the Select Case statement to select which PDF the user will open.
Dim test As String
Dim path As String
Select Case test
path = "C:\test_3\johnson.pdf"
path = "C:\test_3\Ross.pdf"
Dim psi As New ProcessStartInfo()
psi.UseShellExecute = True
psi.FileName = ?Case
Please give me some help to write the code.
This is not homework for a class. It is self-study using books.