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

RadDock Problem while minimizing the form

12 Answers 273 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Sandeep
Top achievements
Rank 1
Sandeep asked on 24 Apr 2012, 07:16 AM
Problem occur while minimizing the parent radDock form.

i opened the form1 in document window of radDock as a child form. The form1 is little bigger than the radDock document window so i made the  form1 autoScroll properties true. up to this there is no problem, i can scroll the form . when i minimized the parent form i.e. radDock then the error occurred.

error is like this:

ArgumentOutOfRangeException was Unhandled

Value of '-1' is not valid for 'SmallChange'. 'SmallChange' must be greater than or equal to 0.
Parameter name: SmallChange

12 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 24 Apr 2012, 11:03 AM
Hi Sandeep, 

I've not been able to reproduce this. 

Please can you add the code here (designer and form) using the format code block here that replicates the issue and I'll be happy to take a look at it for you
Thanks
Richard
0
Sandeep
Top achievements
Rank 1
answered on 25 Apr 2012, 05:24 AM
HI Richard Slade,
here is the snap of the main form, i have not done much coding in it, but this will represent my problem.
Form "Auto Scroll True" will open in the document window when button is clicked as a child form. This form "Auto Scroll True" has a properties AutoScroll = True. If you tried to minimize the Main window then the error occurred.
0
Julian Benkov
Telerik team
answered on 26 Apr 2012, 03:07 PM
Hello Sandeep,

Thank you for writing.

I made sample application with a DocumentWindow holding a Form with RadDock AutoScroll and I did not find any issues with the minimize / restore window operations. In the attached screen-shot the Form is shown after a restore operation. So, I would kindly ask you to provide us with additional details about your scenario. It will be best if you can open a new support ticket, where you can send us a sample project demonstrating the experienced issue. This will allow us to understand the exact behavior and the circumstances in which it occurs, thus we will be able to provide you with adequate support.

Thank you for your time and cooperation.

All the best,
Julian Benkov
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
0
Giovanni
Top achievements
Rank 1
answered on 27 Feb 2015, 10:18 AM
The error does not appear in Visual Studio, only on exec application:

Le informazioni su come richiamare il debug JIT (Just-In-Time) anziché questa finestra
sono riportate in fondo al messaggio.************** Testo dell'eccezione **************
System.ArgumentOutOfRangeException: Value of '-4' is not valid for 'SmallChange'. 'SmallChange' must be greater than or equal to 0.
Nome parametro: SmallChange
   in Telerik.WinControls.UI.RadScrollBarElement.set_SmallChange(Int32 value)
   in Telerik.WinControls.UI.RadFormBehavior.SynchronizeHorizontalScrollbarValues()
   in Telerik.WinControls.UI.RadFormBehavior.Form_SizeChanged(Object sender, EventArgs e)
   in System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
   in System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
   in System.Windows.Forms.Control.UpdateBounds()
   in System.Windows.Forms.Control.WmWindowPosChanged(Message& m)
   in System.Windows.Forms.Control.WndProc(Message& m)
   in System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   in System.Windows.Forms.Form.WndProc(Message& m)
   in Telerik.WinControls.UI.RadFormControlBase.WndProc(Message& m)
   in System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   in System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Assembly caricati **************
mscorlib
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.34209 built by: FX452RTMGDR
    Base di codice: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Klondike.Win
    Versione assembly: 1.0.0.0
    Versione Win32: 1.0.0.0
    Base di codice: file:///C:/_Net10/Clienti/Klondike/klondikeWin/Klondike.Win/bin/Debug/Klondike.Win.exe
----------------------------------------
Microsoft.VisualBasic
    Versione assembly: 10.0.0.0
    Versione Win32: 12.0.51209.34209 built by: FX452RTMGDR
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System.Windows.Forms
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.34209 built by: FX452RTMGDR
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.34209 built by: FX452RTMGDR
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.34238 built by: FX452RTMGDR
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Configuration
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.34209 built by: FX452RTMGDR
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.34234 built by: FX452RTMGDR
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Runtime.Remoting
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.34245 built by: FX452RTMGDR
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
Telerik.WinControls.UI
    Versione assembly: 2010.3.10.1215
    Versione Win32: 2010.3.10.1215
    Base di codice: file:///C:/Windows/assembly/GAC_MSIL/Telerik.WinControls.UI/2010.3.10.1215__5bb2a467cbec794e/Telerik.WinControls.UI.dll
----------------------------------------
Telerik.WinControls
    Versione assembly: 2010.3.10.1215
    Versione Win32: 2010.3.10.1215
    Base di codice: file:///C:/Windows/assembly/GAC_MSIL/Telerik.WinControls/2010.3.10.1215__5bb2a467cbec794e/Telerik.WinControls.dll
----------------------------------------
Klondike.StSiLibreria
    Versione assembly: 1.0.0.0
    Versione Win32: 1.0.0.0
    Base di codice: file:///C:/_Net10/Clienti/Klondike/klondikeWin/Klondike.Win/bin/Debug/Klondike.StSiLibreria.DLL
----------------------------------------
TelerikCommon
    Versione assembly: 2010.3.10.1215
    Versione Win32: 2010.3.10.1215
    Base di codice: file:///C:/Windows/assembly/GAC_MSIL/TelerikCommon/2010.3.10.1215__5bb2a467cbec794e/TelerikCommon.dll
----------------------------------------
Microsoft.GeneratedCode
    Versione assembly: 1.0.0.0
    Versione Win32: 4.0.30319.34234 built by: FX452RTMGDR
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Telerik.WinControls.Themes.Telerik
    Versione assembly: 2010.3.10.1215
    Versione Win32: 2010.3.10.1215
    Base di codice: file:///C:/Windows/assembly/GAC_MSIL/Telerik.WinControls.Themes.Telerik/2010.3.10.1215__5bb2a467cbec794e/Telerik.WinControls.Themes.Telerik.dll
----------------------------------------
Telerik.WinControls.Themes.Miscellaneous
    Versione assembly: 2010.3.10.1215
    Versione Win32: 2010.3.10.1215
    Base di codice: file:///C:/Windows/assembly/GAC_MSIL/Telerik.WinControls.Themes.Miscellaneous/2010.3.10.1215__5bb2a467cbec794e/Telerik.WinControls.Themes.Miscellaneous.dll
----------------------------------------
Telerik.WinControls.RadDock
    Versione assembly: 2010.3.10.1215
    Versione Win32: 2010.3.10.1215
    Base di codice: file:///C:/Windows/assembly/GAC_MSIL/Telerik.WinControls.RadDock/2010.3.10.1215__5bb2a467cbec794e/Telerik.WinControls.RadDock.dll
----------------------------------------
Klondike.Parameters
    Versione assembly: 1.0.0.0
    Versione Win32: 1.0.0.0
    Base di codice: file:///C:/_Net10/Clienti/Klondike/klondikeWin/Klondike.Win/bin/Debug/Klondike.Parameters.DLL
----------------------------------------
Framework.Parameters
    Versione assembly: 3.5.3696.21941
    Versione Win32: 3.5.3696.21941
    Base di codice: file:///C:/_Net10/Clienti/Klondike/klondikeWin/Klondike.Win/bin/Debug/Framework.Parameters.DLL
----------------------------------------
Klondike.Business
    Versione assembly: 1.0.0.0
    Versione Win32: 1.0.0.0
    Base di codice: file:///C:/_Net10/Clienti/Klondike/klondikeWin/Klondike.Win/bin/Debug/Klondike.Business.DLL
----------------------------------------
Framework.Business
    Versione assembly: 3.5.3696.21942
    Versione Win32: 3.5.3696.21942
    Base di codice: file:///C:/_Net10/Clienti/Klondike/klondikeWin/Klondike.Win/bin/Debug/Framework.Business.DLL
----------------------------------------
Framework.DataAccess.SqlClient
    Versione assembly: 3.5.3696.21941
    Versione Win32: 3.5.3696.21941
    Base di codice: file:///C:/_Net10/Clienti/Klondike/klondikeWin/Klondike.Win/bin/Debug/Framework.DataAccess.SqlClient.DLL
----------------------------------------
Klondike.Data
    Versione assembly: 1.0.0.0
    Versione Win32: 1.0.0.0
    Base di codice: file:///C:/_Net10/Clienti/Klondike/klondikeWin/Klondike.Win/bin/Debug/Klondike.Data.DLL
----------------------------------------
Framework.Data
    Versione assembly: 3.5.3696.21941
    Versione Win32: 3.5.3696.21941
    Base di codice: file:///C:/_Net10/Clienti/Klondike/klondikeWin/Klondike.Win/bin/Debug/Framework.Data.DLL
----------------------------------------
System.Data
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.34209 built by: FX452RTMGDR
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Core
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.34209 built by: FX452RTMGDR
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
mscorlib.resources
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.18408 built by: FX451RTMGREL
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_it_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
System.Management
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.34209 built by: FX452RTMGDR
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
System.Numerics
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.34209 built by: FX452RTMGDR
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
System.Web
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.34237 built by: FX452RTMGDR
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
Klondike.DataAccess
    Versione assembly: 1.0.0.0
    Versione Win32: 1.0.0.0
    Base di codice: file:///C:/_Net10/Clienti/Klondike/klondikeWin/Klondike.Win/bin/Debug/Klondike.DataAccess.DLL
----------------------------------------
System.Transactions
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.34209 built by: FX452RTMGDR
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.34209 built by: FX452RTMGDR
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
Klondike.Core.Data
    Versione assembly: 1.0.0.0
    Versione Win32: 1.0.0.0
    Base di codice: file:///C:/_Net10/Clienti/Klondike/klondikeWin/Klondike.Win/bin/Debug/Klondike.Core.Data.DLL
----------------------------------------
Telerik.WinControls.GridView
    Versione assembly: 2010.3.10.1215
    Versione Win32: 2010.3.10.1215
    Base di codice: file:///C:/Windows/assembly/GAC_MSIL/Telerik.WinControls.GridView/2010.3.10.1215__5bb2a467cbec794e/Telerik.WinControls.GridView.dll
----------------------------------------
Accessibility
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.34209 built by: FX452RTMGDR
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Windows.Forms.resources
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.18408 built by: FX451RTMGREL
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_it_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
0
Giovanni
Top achievements
Rank 1
answered on 27 Feb 2015, 02:38 PM
The error does not occur on Visual Studio but only executing the application (both version debug or release) : see the attach file
0
Giovanni
Top achievements
Rank 1
answered on 27 Feb 2015, 06:28 PM
After many day(month) i found the solution:

The property autoscroll=true causes the error.

0
Stefan
Telerik team
answered on 03 Mar 2015, 11:16 AM
Hello Giovanni,

I am not sure how your case is related to the case in this thread? Can you please clarify? If it is, and you still experience issues, please provide more details about the precise case. If it is not related, feel free to open a new thread about the case you have.

Regards,
Stefan
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Giovanni
Top achievements
Rank 1
answered on 04 Mar 2015, 05:47 PM
Is related: with autoscroll property set = true in raddoc document, when the user minimized the application the error "Value .. is not valid for smallChange " occured.
0
Stefan
Telerik team
answered on 06 Mar 2015, 07:13 AM
Hi Giovanni,

Thank you for getting back to me.

I have tested two scenarios with our latest version but I was unable to reproduce such behavior.

Scenario 1:
- Add dock with a DocumentWindow at design time
- Set the DocumentWindow AutoScroll property to true
- Start the app and minimize/restore the form
- Then I docked the RadDock control to Fill and tried again to minimize/restore the form
- All worked good

Scenario 2:
- Add dock to the form 
- In the code behind, set the form's IsMdiContainer to true and the dock's AutoDetectMdiChildren property to true
- On a button click add a a RadForm with its AutoScroll property set to true
- Start the app and minimize/restore the form
- Then I docked the RadDock control to Fill and tried again to minimize/restore the form
- All worked good

Attached you can find a video of my tests (opens in browser).

May I please ask you for a step by step instruction how to replicate the observed exception. Also, can you clarify which version of the suite you use?

If it would be more convenient for you, you can send us a sample project (via support ticket as attachments in the forums are not allowed).

I am looking forward to your reply.

Regards,
Stefan
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Giovanni
Top achievements
Rank 1
answered on 06 Mar 2015, 11:55 AM
My telerik version is Q3 2010
I prepared small project with the error when the user minimized the application.

But my licence has expired and i do not know how send you the project (if you're still interested)

As written above I have already solved by setting the autoscroll = false

I repeat that the error only appears when you run the .exe and not in visual studio
0
Stefan
Telerik team
answered on 10 Mar 2015, 09:26 AM
Hi Giovanni,

I am definitely interested in this project - want to make sure this issue is no longer applicable.

You can either upload it somewhere and provide the link, or you can log in to your account where I added new support ticket for you and you can attach the project in it. The ticket title is "RadDock Problem while minimizing the form"

I have tested the below scenarios with the exe as well, but to no avail.

I am looking forward to your sample.

Regards,
Stefan
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Stefan
Telerik team
answered on 10 Mar 2015, 03:46 PM
Thanks to Giovanni, we managed to replicate the issue and I logged it in our portal. To all interested, here is a link: http://feedback.telerik.com/Project/154/Feedback/Details/153117.

Regards,
Stefan
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Dock
Asked by
Sandeep
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Sandeep
Top achievements
Rank 1
Julian Benkov
Telerik team
Giovanni
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or