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

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

2 Answers 107 Views
ComboBox and ListBox (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alexandre
Top achievements
Rank 1
Alexandre asked on 11 Jun 2009, 01:35 PM
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 Answers, 1 is accepted

Sort by
0
Alexandre
Top achievements
Rank 1
answered on 11 Jun 2009, 01:37 PM
Sorry I forgot that it's when a click somewhere else in my form
0
Nick
Telerik team
answered on 12 Jun 2009, 08:26 AM
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.
Tags
ComboBox and ListBox (obsolete as of Q2 2010)
Asked by
Alexandre
Top achievements
Rank 1
Answers by
Alexandre
Top achievements
Rank 1
Nick
Telerik team
Share this question
or