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
Hi,
It is not very clear for me what you are doing in your scenario. I can suggest you to take a look at the sample I have uploaded (the button can be accessed via Alt+B).
I hope it is helpful for you.
Regards,
Stefaniya
Thank-you, Stefaniya.
It sounds like you may have what I'm looking for. But I don't have VS2010 yet to be able to open the project.
I'll try using your code in a different scenario, and will get back with you.
Let me know if this works for you or if you have any further questions.