Thinker

Would you like to react to this message? Create an account in a few clicks or log in to continue.
Thinker

Forum for story


2 posters

    【看似是Binding问题的问题】-其实是Keydown(回车键和RowUpdate)

    markeloff
    markeloff
    无尽星空


    帖子数 : 322
    积分 : 5194
    威望 : 0
    注册日期 : 2011-09-06
    年龄 : 35
    地点 : Singapore

    【看似是Binding问题的问题】-其实是Keydown(回车键和RowUpdate) Empty 【看似是Binding问题的问题】-其实是Keydown(回车键和RowUpdate)

    Post by markeloff 2011-09-20, 5:17 pm

    Private Sub f01Location_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
    Try
    Select Case e.KeyCode
    Case Keys.Return
    If dgv01Location.Focused Then
    e.SuppressKeyPress = True
    pShowViewMode()
    Else
    System.Windows.Forms.SendKeys.Send("{TAB}")
    End If

    System.Windows.Forms.SendKeys.Send("{TAB}")
    Case Keys.Escape
    Call btnExit_Click(sender, e)
    End Select
    Catch ex As Exception
    MsgBox("<f01Location.f01Location_KeyDown> " & ex.Message)
    End Try
    End Sub
    markeloff
    markeloff
    无尽星空


    帖子数 : 322
    积分 : 5194
    威望 : 0
    注册日期 : 2011-09-06
    年龄 : 35
    地点 : Singapore

    【看似是Binding问题的问题】-其实是Keydown(回车键和RowUpdate) Empty Re: 【看似是Binding问题的问题】-其实是Keydown(回车键和RowUpdate)

    Post by markeloff 2011-09-20, 5:20 pm

    Private Sub dgv01Location_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles dgv01Location.KeyDown
    'Select Case e.KeyCode
    ' Case Keys.Return
    ' pShowViewMode()
    'End Select
    End Sub
    =============改错==========错误的位置如上所示========
    markeloff
    markeloff
    无尽星空


    帖子数 : 322
    积分 : 5194
    威望 : 0
    注册日期 : 2011-09-06
    年龄 : 35
    地点 : Singapore

    【看似是Binding问题的问题】-其实是Keydown(回车键和RowUpdate) Empty Re: 【看似是Binding问题的问题】-其实是Keydown(回车键和RowUpdate)

    Post by markeloff 2011-09-20, 6:12 pm

    Me.PTools.Enabled = Not status
    检查Button的控制
    Aueeins
    Aueeins
    呢喃的歌声


    帖子数 : 205
    积分 : 5009
    威望 : 0
    注册日期 : 2011-09-08
    地点 : SG

    【看似是Binding问题的问题】-其实是Keydown(回车键和RowUpdate) Empty Re: 【看似是Binding问题的问题】-其实是Keydown(回车键和RowUpdate)

    Post by Aueeins 2011-09-20, 9:44 pm

    检查pRowUpdate

      Current date/time is 2024-04-19, 6:08 pm