This is a migrated thread and some comments may be shown as answers.

ScreentipNeeded Event

2 Answers 106 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
Veteran
James asked on 03 Sep 2019, 12:00 AM

 

ScreenTipNeeded(sender As Object, e As ScreenTipNeededEventArgs)

 

I have a quick question. How can I get the name of the control that needs a screentip with the sender object or screentipneededeventargs?

 

I cannot seem to find the name of the control that needs the screentip.

 

Thanks,

 

Jim

 

 

2 Answers, 1 is accepted

Sort by
0
James
Top achievements
Rank 1
Veteran
answered on 03 Sep 2019, 07:59 PM

For anyone else that may needs to know the control that raised the ScreenTipNeeded event, see the following snipped:

Private Sub Control_ScreenTipNeeded(sender As Object, e As ScreenTipNeededEventArgs)

Dim objComponentInputBehaviour As Telerik.WinControls.ComponentInputBehavior = sender
Dim objControl As RadControl = objComponentInputBehaviour.SelectedElement.ElementTree.Control

Debug.writeline(objControl.name)

0
Nadya | Tech Support Engineer
Telerik team
answered on 05 Sep 2019, 10:23 AM

Hello, James,

I am glad that you have found a suitable solution for your case. More information about Screen Tip is available here: https://docs.telerik.com/devtools/winforms/telerik-presentation-framework/tooltips-and-screentips/screen-tips

Do not hesitate to contact us if you have other questions.

Regards,
Nadya
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
James
Top achievements
Rank 1
Veteran
Answers by
James
Top achievements
Rank 1
Veteran
Nadya | Tech Support Engineer
Telerik team
Share this question
or