Foxtable(狐表)用户栏目专家坐堂 → BeforeClose有关掉窗口的代码,一点系统卡一会后直接退出


  共有2294人关注过本帖树形打印复制链接

主题:BeforeClose有关掉窗口的代码,一点系统卡一会后直接退出

帅哥哟,离线,有人找我吗?
huhu
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:五尾狐 帖子:1165 积分:8129 威望:0 精华:0 注册:2015/3/30 10:44:00
BeforeClose有关掉窗口的代码,一点系统卡一会后直接退出  发帖心情 Post By:2018/10/29 18:05:00 [只看该作者]

BeforeClose有关掉窗口的代码,系统卡一会后直接退出

Dim bh As String = Tables("正式版本").Current("编号")
Dim csm As String = Tables("正式版本").Current("测试组名")
Dim csmbh = csm & "\" & bh
Dim ftp As New FtpClient
Dim dls As List(of String)
ftp.Host="192.168.1.35"
ftp.Account = "tester"
ftp.Password = "tester"
Dim lj As String = Tables("正式版本").Current("发布目录")
If ftp.GetFileList(lj).Count < 1 Then
    ftp.DeleteDir(lj)
End If
Dim lvw As WinForm.ListView = e.Form.Controls("ListView1")
If lvw.Rows.Count < 1 Then
    Tables("正式版本").Current("发布目录") = Nothing
End If
ftp.Close
Forms("版本发布").close


 回到顶部
帅哥哟,离线,有人找我吗?
有点甜
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2018/10/29 18:19:00 [只看该作者]

删除代码

 

Forms("版本发布").close


 回到顶部