For the very first time I am using a SQL file that is not actualy from the server. I am using a local sql datbase. I have added the connection string to my app.config file but now I am not sure how to use it in code

my config string is named MateCare
VB Code:
  1. Private Sub AddPatient()
  2.         Dim con As String = ConfigurationSettings.AppSettings("MateCare")
  3.         Dim strSp As String = "InsertPatient"
  4.         Dim cn As SqlConnection = New SqlConnection
  5.         Dim cmd As SqlCommand = New SqlCommand(strSp, cn)
  6.         cn.ConnectionString = con
  7.         Try
  8.             cn.Open()
  9.             With cmd
  10.                 .CommandType = CommandType.StoredProcedure
  11.                 .Parameters.Add("PatientID", _
  12.                     SqlDbType.Int).Direction = ParameterDirection.Input
  13.                 .Parameters("PatientID").Value = txtPatientID.Text
  14.             End With
  15.         Catch ex As Exception
  16.             MessageBox.Show(ex.Message & vbNewLine & _
  17.             ex.Source, "ExecuteStartStop Dates", MessageBoxButtons.OK)
  18.         End Try
  19.     End Sub