vb Code:
  1. Select Case Form2.CheckBox18.Checked
  2.             Case True
  3.  
  4.                 lines(foundIndex) = Regex.Replace(lines(foundIndex), "(?<=" & "sIntroSequence" & "=)\d+", "BGS_LOGO.BIK") 'WRITE "BGS_LOGO.BIK"
  5.                 IO.File.WriteAllLines("C:\test.txt"), lines)
  6.             Case False
  7.  
  8.                 lines(foundIndex) = Regex.Replace(lines(foundIndex), "(?<=" & "sIntroSequence" & "=)\d+", "") 'REMOVE TEXT (IF ANY PRESENT)
  9.                 IO.File.WriteAllLines("C:\test.txt"), lines)
  10.         End Select

You are checking the wrong property in your Select Case statement

One of the earlier posters resolved your problem already.
Sorry you weren't paying attention