{"Object reference not set to an instance of an object."}

3 posts, 0 answers
  1. Alexandre
    Alexandre avatar
    26 posts
    Member since:
    Feb 2008

    Posted 11 Jun 2009 Link to this post

    Hi , I'm curently writing an 100% keyboard application and I got some trouble when I set the focus like this: MyCombobox.ComboBoxElement.TextBoxElement.TextBoxItem.Focus() and with the multicolumncombobox: MyMulticolumnCombobox.MultiColumnComboBoxElement.TextBoxElement.TextBoxItem.Focus() It work fine but if after that I take mouse it throw me an exception with this stack trace:

    "   at Telerik.WinControls.UI.PopupManager.OnMouseDown(Point cursorPos)\r\n   at Telerik.WinControls.UI.PopupManager.PreFilterMessage(Message& msg)\r\n   at System.Windows.Forms.Application.ThreadContext.ProcessFilters(MSG& msg, Boolean& modified)\r\n   at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)\r\n   at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FPreTranslateMessage(MSG& msg)\r\n   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)\r\n   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)\r\n   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)\r\n   at System.Windows.Forms.Application.Run(ApplicationContext context)\r\n   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()\r\n   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()\r\n   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)\r\n   at DPARS_POS.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81\r\n   at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)\r\n   at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)\r\n   at System.Runtime.Hosting.ManifestRunner.Run(Boolean checkAptModel)\r\n   at System.Runtime.Hosting.ManifestRunner.ExecuteAsAssembly()\r\n   at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)\r\n   at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext)\r\n   at System.Activator.CreateInstance(ActivationContext activationContext)\r\n   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()\r\n   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)\r\n   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Threading.ThreadHelper.ThreadStart()"


    Hope you will be able to help me
    Thanks
    Alexandre Samson
  2. Alexandre
    Alexandre avatar
    26 posts
    Member since:
    Feb 2008

    Posted 11 Jun 2009 Link to this post

    Sorry I forgot that it's when a click somewhere else in my form
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Nick
    Admin
    Nick avatar
    767 posts

    Posted 12 Jun 2009 Link to this post

    Hi Alexandre,

    I tried to reproduce the bug unsuccessfully. However we are very eager to help you further with that. Please send us a sample application reproducing the case. You need to open a new support ticket so that you can attach files. Than you very much in advance.

    Regards,
    Nick
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top