title: Why does my code stop after "con.Open()"?
body: <p>In my code, why does nothing execute after <code>con.Open()</code>.<br>
  If I step through each step, it ends the <code>Form1_Load</code> event after <code>con.Open()</code>.</p>
  
  <pre><code>Imports System.Data.OleDb
  
  Public Class Form1
  
  Dim con As OleDbConnection
  Dim strCon As String = "Provider=Microsoft.ACE.OLEDB.12.0;" &amp; _
  "Data Source=C:\testDB.accdb"
  
  Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  
      con = New OleDbConnection(strCon)
  
      con.Open()
      MsgBox("con open")
  
      con.Close()
      MsgBox("con closed")
  
  End Sub
  End Class
  </code></pre>