Foxtable(狐表)用户栏目专家坐堂 → [求助]显示问题


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

主题:[求助]显示问题

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


加好友 发短信
等级:管理员 帖子:47448 积分:251054 威望:0 精华:91 注册:2008/6/17 17:14:00
  发帖心情 Post By:2014/6/12 9:04:00 [显示全部帖子]

说明你的登录窗口没有关闭,检查登录窗口确定按钮的Click事件代码,是否有关闭此窗口的代码


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


加好友 发短信
等级:管理员 帖子:47448 积分:251054 威望:0 精华:91 注册:2008/6/17 17:14:00
  发帖心情 Post By:2014/6/12 9:49:00 [显示全部帖子]

有代码,但是没有关闭,说明这个代码没有执行。

你用下面的方法分析一下:

http://www.foxtable.com/help/topics/1485.htm

 

搞不定,就将文件发上来,我们帮你看看


 回到顶部
帅哥哟,离线,有人找我吗?
狐狸爸爸
  3楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:管理员 帖子:47448 积分:251054 威望:0 精华:91 注册:2008/6/17 17:14:00
  发帖心情 Post By:2014/6/12 9:56:00 [显示全部帖子]

你的主窗口是个模式窗口吧? 如果是的,这个修改一下:

 

Dim UserName As String = e.Form.Controls("UserName").Value
Dim cmd As New SQLCommand
Dim dt As DataTable
Dim dr As DataRow
cmd.C
If UserName = ""  Then
    Messagebox.show("请选择用户!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
    Return
End If
cmd.CommandText = "Select * From {Users} Where [Name] = '" & UserName & "'"
dt = cmd.ExecuteReader

'---------------------------------------------------
If dt.DataRows.Count = 0 Then
    Messagebox.show("此用户不存在!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
    Return
Else
    dr = dt.DataRows(0)
    If e.Form.Controls("PassWord").Value = dr("Password") Then
        _UserName = UserName
        _UserGroup = dr("Group")

        e.Form.BaseForm.Hide()
        e.Form.Close
        Forms("主窗口").open()
    Else
        Messagebox.show("密码错误!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
    End If
End If

 

 


 回到顶部