我从以下代码中收到错误“表达式不是 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