RadTextBox not receiving mouse events

1 Answer 77 Views
TextBoxControl
Jay
Top achievements
Rank 1
Iron
Iron
Jay asked on 17 Jun 2023, 04:03 AM

I have a RadTextBox whose MouseDown and MouseMove events do not fire when the mouse is inside the text box.

Running Spyxx reveals that at least the MouseMove event is firing. But both events are being ignored by the RadTextBox control.

Bug? Is this a known issue?

Jay

 

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 20 Jun 2023, 11:50 AM

Hi Jay,

You need to subscribe to the mouse events of the TextBoxElement of the RadTextBox control.

this.radTextBox1.TextBoxElement.MouseDown += RadTextBox1_MouseDown;
this.radTextBox1.TextBoxElement.MouseMove += RadTextBox1_MouseMove;

private void RadTextBox1_MouseMove(object sender, MouseEventArgs e)
{           
}

private void RadTextBox1_MouseDown(object sender, MouseEventArgs e)
{            
}

The controls in our WinForms suite are simple wrappers and do not implement detailed functionality. Each control has a direct descendent that derives from RootRadElement. This element wraps the actual functionality of the control and acts to transfer events to and from the RadControl class. You can find more information in the Introducing the Telerik Presentation Framework help article. 

Regards,
Dinko | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
TextBoxControl
Asked by
Jay
Top achievements
Rank 1
Iron
Iron
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or