Resize Error

4 posts, 0 answers
  1. Tim DiPaula
    Tim DiPaula avatar
    16 posts
    Member since:
    Jul 2009

    Posted 07 Dec 2009 Link to this post

    I have a WinForms application using a RadForm.  The form makes extensive use of the Rad Controls and when I resize the form to a small width I get the following error:
    "{"Value of '-2' is not valid for 'LargeChange'. 'LargeChange' must be greater than or equal to 0.\r\nParameter name: LargeChange"}"

    Here is the complete stack trace
    at Telerik.WinControls.UI.RadScrollBarElement.set_LargeChange(Int32 value)\r\n   
    at Telerik.WinControls.UI.GridTableElement.UpdateHScrollBarVisibility(SizeF bodySize, SizeF vscrollbarSize)\r\n   
    at Telerik.WinControls.UI.GridTableElement.ArrangeScrollbars(RectangleF& bodyRect, RectangleF clientRect)\r\n   
    at Telerik.WinControls.UI.GridTableElement.ArrangeOverride(SizeF finalSize)\r\n   
    at Telerik.WinControls.RadElement.ArrangeCore(RectangleF finalRect)\r\n   
    at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)\r\n   
    at Telerik.WinControls.RootRadElement.ArrangeOverride(SizeF finalSize)\r\n   
    at Telerik.WinControls.RootRadElement.ArrangeCore(RectangleF finalRect)\r\n   
    at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)\r\n   
    at Telerik.WinControls.ComponentLayoutElementTree.PerformInnerLayout(Boolean performMeasure, Int32 x, Int32 y, Int32 width, Int32 height)\r\n   
    at Telerik.WinControls.ComponentLayoutElementTree.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)\r\n   
    at Telerik.WinControls.RadControl.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)\r\n   
    at System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.SetBounds(Rectangle bounds, BoundsSpecified specified)\r\n   
    at System.Windows.Forms.Layout.DefaultLayout.ApplyCachedBounds(IArrangedElement container)\r\n   
    at System.Windows.Forms.Layout.DefaultLayout.xLayout(IArrangedElement container, Boolean measureOnly, Size& preferredSize)\r\n   
    at System.Windows.Forms.Layout.DefaultLayout.LayoutCore(IArrangedElement container, LayoutEventArgs args)\r\n   
    at System.Windows.Forms.Layout.LayoutEngine.Layout(Object container, LayoutEventArgs layoutEventArgs)\r\n   
    at System.Windows.Forms.Control.OnLayout(LayoutEventArgs levent)\r\n   
    at System.Windows.Forms.ScrollableControl.OnLayout(LayoutEventArgs levent)\r\n   
    at System.Windows.Forms.Control.PerformLayout(LayoutEventArgs args)\r\n   
    at System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.PerformLayout(IArrangedElement affectedElement, String affectedProperty)\r\n   
    at System.Windows.Forms.Layout.LayoutTransaction.DoLayout(IArrangedElement elementToLayout, IArrangedElement elementCausingLayout, String property)\r\n   
    at System.Windows.Forms.Control.OnResize(EventArgs e)\r\n   
    at System.Windows.Forms.Panel.OnResize(EventArgs eventargs)\r\n   
    at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)\r\n   
    at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)\r\n   
    at System.Windows.Forms.Control.UpdateBounds()\r\n   
    at System.Windows.Forms.Control.WmWindowPosChanged(Message& m)\r\n   
    at System.Windows.Forms.Control.WndProc(Message& m)\r\n   
    at System.Windows.Forms.ScrollableControl.WndProc(Message& m)\r\n   
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)\r\n   
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)\r\n   
    at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r\n   
    at System.Windows.Forms.SafeNativeMethods.SetWindowPos(HandleRef hWnd, HandleRef hWndInsertAfter, Int32 x, Int32 y, Int32 cx, Int32 cy, Int32 flags)\r\n   
    at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)\r\n  
    at System.Windows.Forms.Control.SetBounds(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)\r\n   
    at System.Windows.Forms.Control.set_Bounds(Rectangle value)\r\n   at Telerik.WinControls.RadHostItem.SetControlBounds(Rectangle bounds)\r\n  
    at Telerik.WinControls.RadHostItem.ArrangeCore(RectangleF finalRect)\r\n   
    at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)\r\n   
    at Telerik.WinControls.RadElement.ArrangeOverride(SizeF finalSize)\r\n   
    at Telerik.WinControls.RadElement.ArrangeCore(RectangleF finalRect)\r\n  
    at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)\r\n   
    at Telerik.WinControls.Layouts.DockLayoutPanel.ArrangeOverride(SizeF arrangeSize)\r\n   
    at Telerik.WinControls.RadElement.ArrangeCore(RectangleF finalRect)\r\n   
    at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)\r\n   
    at Telerik.WinControls.RadElement.ArrangeOverride(SizeF finalSize)\r\n   
    at Telerik.WinControls.UI.RadTabStripElement.ArrangeOverride(SizeF finalSize)\r\n   
    at Telerik.WinControls.RadElement.ArrangeCore(RectangleF finalRect)\r\n   
    at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)\r\n   
    at Telerik.WinControls.RootRadElement.ArrangeOverride(SizeF finalSize)\r\n  
    at Telerik.WinControls.RootRadElement.ArrangeCore(RectangleF finalRect)\r\n  
    at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)\r\n   
    at Telerik.WinControls.ComponentLayoutElementTree.PerformInnerLayout(Boolean performMeasure, Int32 x, Int32 y, Int32 width, Int32 height)\r\n   
    at Telerik.WinControls.ComponentLayoutElementTree.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)\r\n   
    t Telerik.WinControls.RadControl.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)\r\n   
    at System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.SetBounds(Rectangle bounds, BoundsSpecified specified)\r\n   
    at System.Windows.Forms.Layout.DefaultLayout.xLayoutDockedControl(IArrangedElement element, Rectangle newElementBounds, Boolean measureOnly, Size& preferredSize, Rectangle& remainingBounds)\r\n   
    at System.Windows.Forms.Layout.DefaultLayout.LayoutDockedControls(IArrangedElement container, Boolean measureOnly)\r\n   
    at System.Windows.Forms.Layout.DefaultLayout.xLayout(IArrangedElement container, Boolean measureOnly, Size& preferredSize)\r\n   
    at System.Windows.Forms.Layout.DefaultLayout.LayoutCore(IArrangedElement container, LayoutEventArgs args)\r\n   
    at System.Windows.Forms.Layout.LayoutEngine.Layout(Object container, LayoutEventArgs layoutEventArgs)\r\n   
    at System.Windows.Forms.Control.OnLayout(LayoutEventArgs levent)\r\n   at System.Windows.Forms.ScrollableControl.OnLayout(LayoutEventArgs levent)\r\n   
    at System.Windows.Forms.Form.OnLayout(LayoutEventArgs levent)\r\n   
    at Telerik.WinControls.UI.RadFormControlBase.OnLayout(LayoutEventArgs levent)\r\n   at System.Windows.Forms.Control.PerformLayout(LayoutEventArgs args)\r\n   
    at System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.PerformLayout(IArrangedElement affectedElement, String affectedProperty)\r\n   
    at System.Windows.Forms.Layout.LayoutTransaction.DoLayout(IArrangedElement elementToLayout, IArrangedElement elementCausingLayout, String property)\r\n   
    at System.Windows.Forms.Control.OnResize(EventArgs e)\r\n   
    at System.Windows.Forms.Form.OnResize(EventArgs e)\r\n   
    at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)\r\n   
    at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)\r\n   
    at System.Windows.Forms.Control.UpdateBounds()\r\n   at System.Windows.Forms.Control.WmWindowPosChanged(Message& m)\r\n   
    at System.Windows.Forms.Control.WndProc(Message& m)\r\n   
    at System.Windows.Forms.ScrollableControl.WndProc(Message& m)\r\n   
    at System.Windows.Forms.ContainerControl.WndProc(Message& m)\r\n   at System.Windows.Forms.Form.WmWindowPosChanged(Message& m)\r\n   
    at System.Windows.Forms.Form.WndProc(Message& m)\r\n  
    at Telerik.WinControls.UI.RadFormControlBase.WndProc(Message& m)\r\n   
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)\r\n   
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)\r\n   
    at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r\n   
    at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)\r\n   
    at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)\r\n   
    at System.Windows.Forms.Form.DefWndProc(Message& m)\r\n   
    at System.Windows.Forms.Control.WndProc(Message& m)\r\n   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)\r\n   
    at System.Windows.Forms.ContainerControl.WndProc(Message& m)\r\n   at System.Windows.Forms.Form.WmSysCommand(Message& m)\r\n   
    at System.Windows.Forms.Form.WndProc(Message& m)\r\n   at Telerik.WinControls.UI.RadFormControlBase.WndProc(Message& m)\r\n   
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)\r\n  
     at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)\r\n   
    at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r\n   
    at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)\r\n   
    at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)\r\n   at System.Windows.Forms.Form.DefWndProc(Message& m)\r\n   
    at System.Windows.Forms.Control.WndProc(Message& m)\r\n   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)\r\n   
    at System.Windows.Forms.ContainerControl.WndProc(Message& m)\r\n   at System.Windows.Forms.Form.WmNcButtonDown(Message& m)\r\n   
    at System.Windows.Forms.Form.WndProc(Message& m)\r\n   at Telerik.WinControls.UI.RadFormControlBase.WndProc(Message& m)\r\n   
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)\r\n   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)\r\n   
    at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r\n   
    at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(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(Form mainForm)\r\n   at OnlineCurriculum.DataEntry.Program.Main() in C:\\MCPS\\Portal\\Trunk\\Source\\OnlineCurriculum\\OnlineCurriculum.DataEntry\\Program.cs:line 18"
    Any ideas on this?
  2. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 09 Dec 2009 Link to this post

    Hi Tim,

    Thanks for contacting us and for reporting this issue.

    We would like to kindly ask you to prepare a sample Windows Forms application which can be used to reproduce the issue. This will be extremely helpful for us in determining the reason for this exception and providing a fix for this issue as soon as possible.

    Note: You will have to open a new support ticket in order to be able to attach files. Thanks for your time.


    Kind regards,
    Deyan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Bash
    Bash avatar
    3 posts
    Member since:
    Dec 2009

    Posted 11 Dec 2009 Link to this post

    Can anyone give me the Radform.Designer.vb i dont have that in the templates folder..please I need it!
  5. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 11 Dec 2009 Link to this post

    Hello Lovely Liezl Lomibao,

    Please check the response in the ticket that you have opened about the same topic (Id 264995). It answers your question about the RadForm1.Designer.vb.

    Best wishes,
    Nikolay
    the Telerik team


    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top