Foxtable(狐表)用户栏目专家坐堂 → 关于组合框的问题


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

主题:关于组合框的问题

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


加好友 发短信
等级:贵宾 帖子:39310 积分:196782 威望:0 精华:1 注册:2015/4/25 9:23:00
  发帖心情 Post By:2015/6/7 17:10:00 [显示全部帖子]

enter事件

 

Dim wenhuagmingcheng As WinForm.ComboBox = e.Form.Controls("组合框加工厂家")

e.Sender.ComboList = DataTables("整车主表").GetComboListString("车型名称", " 加工厂家 = '" & wenhuagmingcheng.Text & "'")

 

SelectedIndexChanged事件

 

Dim wenhuagmingcheng As WinForm.ComboBox= Forms("配置查询主窗口").Controls("组合框加工厂家")
Dim chexingmingcheng As WinForm.ComboBox= Forms("配置查询主窗口").Controls("组合框车型名称")
Dim wenhuamingcheng As WinForm.ComboBox= Forms("配置查询主窗口").Controls("组合框文化名称")

Dim fdr As DataRow = DataTables("整车主表").Find(" 加工厂家 = '" & wenhuagmingcheng.Text & "' and 车型名称 = '" & chexingmingcheng.Text & "'")
If fdr IsNot Nothing Then
    wenhuamingcheng .Text = fdr("文化名称")
End If


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


加好友 发短信
等级:贵宾 帖子:39310 积分:196782 威望:0 精华:1 注册:2015/4/25 9:23:00
  发帖心情 Post By:2015/6/7 20:02:00 [显示全部帖子]

 上传例子。

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


加好友 发短信
等级:贵宾 帖子:39310 积分:196782 威望:0 精华:1 注册:2015/4/25 9:23:00
  发帖心情 Post By:2015/6/8 14:40:00 [显示全部帖子]

 呃,你用的盗版foxtable吧?去论坛下载一个试用版使用。

 回到顶部
帅哥哟,离线,有人找我吗?
大红袍
  4楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:贵宾 帖子:39310 积分:196782 威望:0 精华:1 注册:2015/4/25 9:23:00
  发帖心情 Post By:2015/6/8 14:48:00 [显示全部帖子]

 

窗口表事件

 

窗口与控件事件

 

配置查询主窗口_AfterLoad

 

Dim jiagongchangjia  As WinForm.ComboBox = e.form.Controls("组合框加工厂家")

jiagongchangjia.ComboList = DataTables("整车主表").GetComboListString("加工厂家")

 

配置查询主窗口_组合框车型名称_Enter

 

Dim wenhuagmingcheng As WinForm.ComboBox= Forms("配置查询主窗口").Controls("组合框加工厂家")

Dim chexingmingcheng As WinForm.ComboBox= Forms("配置查询主窗口").Controls("组合框车型名称")

Dim wenhuamingcheng As WinForm.ComboBox= Forms("配置查询主窗口").Controls("组合框文化名称")

 

chexingmingcheng.ComboList = DataTables("整车主表").GetComboListString("车型名称", " 加工厂家 = '" & wenhuagmingcheng.Text & "'")

wenhuamingcheng.Combolist = DataTables("整车主表").GetComboListString("文化名称", " 加工厂家 = '" & wenhuagmingcheng.Text & "'")

 

配置查询主窗口_组合框车型名称_SelectedIndexChanged

 

Dim wenhuagmingcheng As WinForm.ComboBox= Forms("配置查询主窗口").Controls("组合框加工厂家")

Dim chexingmingcheng As WinForm.ComboBox= Forms("配置查询主窗口").Controls("组合框车型名称")

Dim wenhuamingcheng As WinForm.ComboBox= Forms("配置查询主窗口").Controls("组合框文化名称")

 

Dim fdr As DataRow = DataTables("整车主表").Find(" 加工厂家 = '" & wenhuagmingcheng.Text & "' and 车型名称 = '" & chexingmingcheng.Text & "'")

If fdr IsNot Nothing Then

    wenhuamingcheng .Text = fdr("文化名称")

End If

 

配置查询主窗口_组合框加工厂家_Enter

 

Dim chexingmingcheng As WinForm.ComboBox = e.form.Controls("组合框车型名称")

Dim wenhuamingcheng As WinForm.ComboBox = e.form.Controls("组合框文化名称")

Dim chexingbianma As WinForm.ComboBox = e.form.Controls("组合框车型编码")

chexingmingcheng.text=""

wenhuamingcheng.text=""

chexingbianma.text=""

 

配置查询主窗口_组合框文化名称_Enter

 

Dim wenhuagmingcheng As WinForm.ComboBox= Forms("配置查询主窗口").Controls("组合框加工厂家")

Dim chexingmingcheng As WinForm.ComboBox= Forms("配置查询主窗口").Controls("组合框车型名称")

Dim wenhuamingcheng As WinForm.ComboBox= Forms("配置查询主窗口").Controls("组合框文化名称")

 

chexingmingcheng.ComboList = DataTables("整车主表").GetComboListString("车型名称", " 加工厂家 = '" & wenhuagmingcheng.Text & "'")

wenhuamingcheng.Combolist = DataTables("整车主表").GetComboListString("文化名称", " 加工厂家 = '" & wenhuagmingcheng.Text & "'")

 

配置查询主窗口_组合框文化名称_SelectedIndexChanged

 

Dim wenhuagmingcheng As WinForm.ComboBox= Forms("配置查询主窗口").Controls("组合框加工厂家")

Dim chexingmingcheng As WinForm.ComboBox= Forms("配置查询主窗口").Controls("组合框车型名称")

Dim wenhuamingcheng As WinForm.ComboBox= Forms("配置查询主窗口").Controls("组合框文化名称")

 

Dim fdr As DataRow = DataTables("整车主表").Find(" 加工厂家 = '" & wenhuagmingcheng.Text & "' and 文化名称 = '" & wenhuamingcheng.Text & "'")

If fdr IsNot Nothing Then

    chexingmingcheng.Text = fdr("车型名称")

End If

 

 


 回到顶部