Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
310
ButtonUIElement - how to click programatically
posted

Hello.

I have a ButtonUIElement which has been added to the UltraTab's  TabRowUIElement in a CreationFilter.  The CreationFilter places my ButtonUIElement in the header of the tab control.  Click events are attached to the ButtonUIElement before it's added to the tab header.

It's working great like that - but..... I have a business requirement to add accessibility to this button and I don't know how to send ElementClick from the code. 

I'm asking you to help me with the snippet which will send click programatically.

This code here, only beeps at me when it gets to the OnClick line.

 Private Sub KeyUpHandler(ByVal sender As Object, ByVal e As KeyEventArgs)
        If Not e.Handled Then
            'check for any hotkey
            If UseMnemonics AndAlso ((Keys.Alt And e.KeyData) = Keys.Alt) AndAlso hotkey = e.KeyCode Then
                e.Handled = True
                OnClick()
            End If
        End If
    End Sub
Parents Reply Children
No Data