到beforeopenproject事件判断
Dim s As String = "Provider=SQ/LOL/EDB.1;Password=1234567890!;Persist Security Info=True;User ID=teacher;Initial Catalog=teacher;Data Source=66.77.88.99"
If Connections.TryConnect(s) = False Then
e.HideSplashForm=true
MessageBox.Show("无法与服务器成功连通!","检查网络是否正常,服务器是否正常")
e.Cancel = True
End If