Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Elegant Ribbon Tech Support » Popup Menu Exception Collapse All
Subject Author Date
Brandon Frye Nov 3, 2008 - 1:41 PM

I have a System.Windows.Forms.UserControl on a popup menu. I can display the control one time. When it pops up the second time I get this following exception:

{"Unable to cast object of type ’AZSim.Symmetry.Windows.Forms.SourceBrowser’ to type ’Elegant.Ui.Control’."}


Statck Trace:

   at Elegant.Ui.DropDown.PopupHidingDelayTimer_Tick(Object sender, EventArgs e)

   at System.Windows.Forms.Timer.OnTick(EventArgs e)

   at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)

   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)

   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)

   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)

   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)

   at System.Windows.Forms.Application.Run(Form mainForm)

   at AZSim.Symmetry.Program.Main() in C:\Users\brandon\Documents\dev\cms\Products\SAFGen\src\core\SAFGenExe\Program.cs:line 18



Any sugestions?


Technical Support Nov 5, 2008 - 11:55 AM

We tried to reproduce the problem but failed. Could you send us a sample or provide more info about the problem if it is possible at all so we can help you.