Hello,
I have a mdi form with RadMenu. In my mdi child forms I have a few text boxes. When a text box has focus and user press ^ key the following Exception is thrown:
System.OverflowException : "Value for a character was too small or too big" or similar ( translated from german )
bei System.Convert.ToChar(UInt32 value)\r\n bei Telerik.WinControls.UI.RadMenu.ProcessCmdKey(Message& m, Keys keyData)\r\n bei Telerik.WinControls.UI.RadMenu.PreviewMessage(Message& msg)\r\n bei Telerik.WinControls.RadMessageFilter.NotifyGetMessageEvent(Message& msg)\r\n bei Telerik.WinControls.RadMessageFilter.GetMessageHookProc(Int32 code, IntPtr wParam, IntPtr lParam)\r\n bei System.Windows.Forms.UnsafeNativeMethods.GetMessageW(MSG& msg, HandleRef hWnd, Int32 uMsgFilterMin, Int32 uMsgFilterMax)\r\n bei System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)\r\n bei System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)\r\n bei System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)\r\n bei System.Windows.Forms.Application.Run(Form mainForm)\r\n bei Turnierplaner.Program.Main() in D:\\Projekte\\Kicker\\Turnierplaner\\Turnierplaner\\Program.cs:Zeile 19.\r\n bei System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)\r\n bei System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)\r\n bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()\r\n bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)\r\n bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n bei System.Threading.ThreadHelper.ThreadStart()"
But I have no chance to catch key press before exception occurs
Regards,
Markus
I have a mdi form with RadMenu. In my mdi child forms I have a few text boxes. When a text box has focus and user press ^ key the following Exception is thrown:
System.OverflowException : "Value for a character was too small or too big" or similar ( translated from german )
bei System.Convert.ToChar(UInt32 value)\r\n bei Telerik.WinControls.UI.RadMenu.ProcessCmdKey(Message& m, Keys keyData)\r\n bei Telerik.WinControls.UI.RadMenu.PreviewMessage(Message& msg)\r\n bei Telerik.WinControls.RadMessageFilter.NotifyGetMessageEvent(Message& msg)\r\n bei Telerik.WinControls.RadMessageFilter.GetMessageHookProc(Int32 code, IntPtr wParam, IntPtr lParam)\r\n bei System.Windows.Forms.UnsafeNativeMethods.GetMessageW(MSG& msg, HandleRef hWnd, Int32 uMsgFilterMin, Int32 uMsgFilterMax)\r\n bei System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)\r\n bei System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)\r\n bei System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)\r\n bei System.Windows.Forms.Application.Run(Form mainForm)\r\n bei Turnierplaner.Program.Main() in D:\\Projekte\\Kicker\\Turnierplaner\\Turnierplaner\\Program.cs:Zeile 19.\r\n bei System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)\r\n bei System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)\r\n bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()\r\n bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)\r\n bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n bei System.Threading.ThreadHelper.ThreadStart()"
But I have no chance to catch key press before exception occurs
Regards,
Markus