Foxtable(狐表)用户栏目专家坐堂 → 引用系统自带的查找功能,能否用代码设置默认匹配方式?


  共有3251人关注过本帖平板打印复制链接

主题:引用系统自带的查找功能,能否用代码设置默认匹配方式?

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


加好友 发短信
等级:贵宾 帖子:39310 积分:196782 威望:0 精华:1 注册:2015/4/25 9:23:00
  发帖心情 Post By:2015/9/29 11:08:00 [只看该作者]

全局代码

 

Public Sub textBox1_KeyDown(sender As Object, e As System.Windows.Forms.KeyEventArgs)
If e.KeyCode = Keys.Enter
    sender.parent.Controls("FindNext").PerformClick
End If
End Sub

 

计划管理

 

Dim frm = Windows.forms.Form.ActiveForm
If frm IsNot Nothing Then
    If frm.name = "Class108" Then
        Dim ContentFind As windows.Forms.ComboBox = frm.controls("ContentFind")
        removehandler ContentFind.Keydown, addressof textbox1_keydown
        addhandler ContentFind.Keydown, addressof textbox1_keydown
    End If
End If


 回到顶部