I got this code for disable alt key on the radribbonbar.
SetProperty(Me.RadRibbonBar1, "EnableKeyTips", False)
Public Sub SetProperty(ByVal obj As Object, ByVal propertyName As String, ByVal val As Object)
Dim t As System.Type = GetType(Telerik.WinControls.UI.RadRibbonBar)
Dim flags As System.Reflection.BindingFlags = System.Reflection.BindingFlags.Instance Or System.Reflection.BindingFlags.NonPublic Or System.Reflection.BindingFlags.[Public]
Dim pi As System.Reflection.PropertyInfo = t.GetProperty(propertyName, flags)
val = Convert.ChangeType(val, pi.PropertyType)
pi.SetValue(obj, val, Nothing)
End Sub
However I got the error message "NullReferenceException".
I use VB2005, and I want to disable Alt hot key.
Do I have any idea??
SetProperty(Me.RadRibbonBar1, "EnableKeyTips", False)
Public Sub SetProperty(ByVal obj As Object, ByVal propertyName As String, ByVal val As Object)
Dim t As System.Type = GetType(Telerik.WinControls.UI.RadRibbonBar)
Dim flags As System.Reflection.BindingFlags = System.Reflection.BindingFlags.Instance Or System.Reflection.BindingFlags.NonPublic Or System.Reflection.BindingFlags.[Public]
Dim pi As System.Reflection.PropertyInfo = t.GetProperty(propertyName, flags)
val = Convert.ChangeType(val, pi.PropertyType)
pi.SetValue(obj, val, Nothing)
End Sub
However I got the error message "NullReferenceException".
I use VB2005, and I want to disable Alt hot key.
Do I have any idea??