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
70
How to Force an UltraTextEditor's DropDownEditorButton Click on KeyDown Event?
posted

I would have thought this had a simple answer but maybe I'm overlooking something.  Here's the scenario, I have an UltraTextEditor with a single DropDownEditorButton in the ButtonsRight collection.  This button's Control property is wired to an UltraMonthViewMulti calendar control.  When the button is clicked, the calendar control opens perfectly aligned as expected.

Challange - The UltraTextEditor must support an F4 key press that effectively forces the click of the DropDownEditorButton thus opening the calendar.   Here's some code...

   

    Private Sub UltraTextEditor_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles UltraTextEditor.KeyDown
        If e.KeyValue = System.Windows.Forms.Keys.F4 Then
            'Some how force the ButtonsRight(0) DropDownButton to fire
        End If

    End Sub

 

Question - How can I accomplish this?  I would have thought that you could have simply done something like the following but it apparently doesn't exist. 

    ex:  Me.UltraTextEditor.ButtonsRight(0).Click() 

 

Any help would be greatly appreciated. 

Parents Reply Children