Error in 2.7.0

Topics related to the Krypton Ribbon.

Moderators: Phil Wright, Chris Porter

Error in 2.7.0

Postby jarekz » Thu Dec 20, 2007 6:58 pm

Any time I click on Ribbon Application button I receive the following error(same happens in Krypton Explorer):

System.ArgumentOutOfRangeException was unhandled
Message="Value '0' is not a valid value for Interval. Interval must be greater than 0.\r\nParameter name: Interval"
Source="System.Windows.Forms"
ParamName="Interval"
StackTrace:
at System.Windows.Forms.Timer.set_Interval(Int32 value)
at ComponentFactory.Krypton.Toolkit.ViewContextMenuManager..ctor(Control control, ViewBase root)
at ea..ctor(KryptonRibbon A_0, RibbonAppButton A_1, IPalette A_2, PaletteMode A_3, PaletteRedirect A_4, Rectangle A_5, Boolean A_6)
at ey.d(Object A_0, EventArgs A_1)
at cl.a(MouseEventArgs A_0)
at cl.b(Control A_0, Point A_1, MouseButtons A_2)
at ComponentFactory.Krypton.Toolkit.ToolTipController.MouseDown(Control c, Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ViewBase.MouseDown(Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ViewBase.MouseDown(Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ViewManager.MouseDown(MouseEventArgs e, Point rawPt)
at ComponentFactory.Krypton.Ribbon.KryptonRibbon.OnMouseDown(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at ComponentFactory.Krypton.Toolkit.VisualControlBase.WndProc(Message& m)
at ComponentFactory.Krypton.Ribbon.KryptonRibbon.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.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(ApplicationContext context)
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at WindowsApplication7.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
jarekz
 
Posts: 47
Joined: Fri Apr 13, 2007 1:12 am
Location: Poland

Postby Phil Wright » Thu Dec 20, 2007 7:39 pm

Interesting. Which version of .NET are you using? Do you have .NET 3.0 or .NET 3.5 installed? Are you using XP or Vista?
Phil Wright
Site Admin
 
Posts: 2720
Joined: Thu Apr 13, 2006 2:55 pm
Location: Melbourne, Australia

Postby Phil Wright » Thu Dec 20, 2007 7:41 pm

Looking at the code the timer interval is assigned...

SystemInformation.MenuShowDelay

So I assume that you have customized your window theme so that sub menus appear instantly?
Phil Wright
Site Admin
 
Posts: 2720
Joined: Thu Apr 13, 2006 2:55 pm
Location: Melbourne, Australia

Postby jarekz » Thu Dec 20, 2007 8:21 pm

Windows XP Style, Default (blue), Large Fonts .net 1.1 2.0 3.0 3.5 vs2003-2008
Yes: Menu speed set to 0
Last edited by jarekz on Fri Dec 21, 2007 8:28 am, edited 1 time in total.
jarekz
 
Posts: 47
Joined: Fri Apr 13, 2007 1:12 am
Location: Poland

Postby Phil Wright » Thu Dec 20, 2007 8:28 pm

Set the menu speed to non-zero and it should then work
Phil Wright
Site Admin
 
Posts: 2720
Joined: Thu Apr 13, 2006 2:55 pm
Location: Melbourne, Australia

Postby jarekz » Thu Dec 20, 2007 8:57 pm

Yes, it works.
Do you plan to change this in the nearest release, so my users will not bother me in the future if menu speed is set to 0 on their systems?
jarekz
 
Posts: 47
Joined: Fri Apr 13, 2007 1:12 am
Location: Poland


Return to Krypton Ribbon

Who is online

Users browsing this forum: No registered users and 0 guests

cron