We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

XPMenus.PopupMenu.Show() exception

Thread ID:

Created:

Updated:

Platform:

Replies:

7988 Oct 16,2003 09:58 AM UTC Oct 16,2003 11:41 AM UTC Windows Forms 1
loading
Tags: Tools
Administrator [Syncfusion]
Asked On October 16, 2003 09:58 AM UTC

Hi, We have an application that shows a XPMenus.PopupMenu with a UserControl as its parent. The UserControl is COM-enabled and via the HTML tag instantiated on a HTML-page. That is, the usercontrol is NOT added to a Form. The problem is that the first time the PopupMenu.Show() is called, an exception gets thrown : "Non-static method requires a target". The Control.FindForm() method might be the problem. Any suggestions ? I have included at StackTrace below. Thanks, Jimmy Stack-Trace: System.Reflection.TargetException: Non-static method requires a target. at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean verifyAccess) at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean verifyAccess) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Syncfusion.Windows.Forms.Tools.XPMenus.BarManager.FireMenuStart(Form form) at Syncfusion.Windows.Forms.Tools.XPMenus.BarManager.OnStartingMenuNavigation(Form form) at Syncfusion.Windows.Forms.Tools.XPMenus.PopupMenu.ShowChildrenUI(Point pos, IPopupParent parentUI) at Syncfusion.Windows.Forms.Tools.XPMenus.PopupMenu.Show(Control control, Point pos) at ClassLibrary2.MyControl.MyOnMouseDown(Object sender, MouseEventArgs e) in c:\documents and settings\administrator\my documents\visual studio projects\classlibrary2\classlibrary2\mycontrol.cs:line 29 at System.Windows.Forms.Control.OnMouseDown(MouseEventArgs e) at System.Windows.Forms.UserControl.OnMouseDown(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ContainerControl.WndProc(Message& m) at System.Windows.Forms.UserControl.WndProc(Message& m) at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.ActiveXImpl.System.Windows.Forms.IWindowTarget.OnMessage(Message& m) at System.Windows.Forms.ActiveXImpl.System.Windows.Forms.IWindowTarget.OnMessage(Message& m) at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) mscorlib, Assembly Version: 1.0.5000.0, Win32 Version: 1.1.4322.573 ---------------------------------------- Syncfusion.Tools, Assembly Version: 1.6.1.5 ---------------------------------------- Syncfusion.Shared, Assembly Version: 1.6.1.5
Arun Srinivasan [Syncfusion]
Replied On October 16, 2003 11:41 AM UTC

Hi Jimmy Thanks for posting the stack trace. The problem seems to be in FireMenuStart() and the Essential Tools will be fixing this right away. We will notify you as soon as a new build which includes this fix becomes available for download. Regards Arun

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;