次のコードから、「式はメソッド VS2010 ではありません」というエラーが表示されます。
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
conn.ConnectionString = connstring
If Not conn.State = ConnectionState.Open Then
*ConnectionState*.Open()
MsgBox("open")
Else
MsgBox("close")
End If
End Sub