项目事件代码如下,只要断线 程序就死掉,有没有碰到类似问题的 求助~~ 找不到原因了
项目事件
AfterOpenProject
ApplicationMenu.visible= False '用于关闭左上方的大按钮
Forms("登录").Open()
SaveConfigValue("默认用户",_username) '保存最后登录的用户账号信息
baseMainForm.text = "九宇金泰企业管理系统"
BeforeOpenProject
Try
Dim Client As System.Net.Sockets.Socket = New System.Net.Sockets.Socket(System.Net.Sockets.AddressFamily.InterNetwork, System.Net.Sockets.SocketType.Stream, System.Net.Sockets.ProtocolType.Tcp)
Client.Connect("jybioxm.gicp.net", "10804" )
Client.Close()
Catch Ex As Exception
e.HideSplashForm = True
MessageBox.Show("连接不到服务器,请检查您的服务器连接!","提示",MessageBoxButtons.OK ,MessageBoxIcon.Information)
e.Cancel = True
End Try
SystemIdle
If rbnbtn IsNot Nothing Then
RbnBtn.Text = Date.now & " " & Format(Date.Today(),"dddd")
End If
NetworkAvailabilityChanged
Forms("登录").show
登录窗口 afterload代码
e.form.BaseForm.FormBorderStyle = Windows.Forms.FormBorderStyle.None
AddHandler e.Form.Panel.MouseDown,AddressOf Panel_MouseDown
e.form.controls("username").text = GetConfigValue("默认用户", "")
[此贴子已经被作者于2013-7-25 10:22:15编辑过]