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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How save items using DockingManager control - Visual Basic

Thread ID:

Created:

Updated:

Platform:

Replies:

150343 Jan 2,2020 07:56 PM UTC Jan 9,2020 04:05 AM UTC WinForms 7
loading
Tags: DockingManager
Igor
Asked On January 2, 2020 07:56 PM UTC

Hello everyone

How save the state of my project using DockingManager control?

I tried to save and load  the project using:

Me.dockingManager1.SaveDockState (Serializer) - Close Button

Me.dockingManager1.LoadDockState (serializer); - button "Carregar"

but is not working

How can save the position of the elements and whenever the user enters  in program, the elements (panel and form) will be in the same position.

Attachment: DockingManager_9c869f34.rar

Niranjan Kumar Gopalan [Syncfusion]
Replied On January 3, 2020 08:36 AM UTC

Hi Igor, 

Thanks for contacting Syncfusion support. 

We have checked your query “Load and Save does not work in DockingManager”. In your sample you are adding panels to DockingManager children collection during runtime by button click. So when the application is closed, the panels in DockingManager children collection are cleared. Therefore when you load the saved file after re-opening the application , it has the saved information of panels regarding position, height etc.. but it won’t add panels in  DockingManager children collection. Please load the saved file after adding panels in DockingManager, and it works properly. Please refer the below video for the same. 


Regards, 
Niranjan kumar 


Igor
Replied On January 7, 2020 12:55 AM UTC

hi Niranjan,

thankyou for answer.


I was solving my problem and I just forgot to reply your tip 

helped me lot 


Niranjan Kumar Gopalan [Syncfusion]
Replied On January 7, 2020 03:55 AM UTC

Hi Igor, 

Thanks for your update. 

Please let us know if you require further assistance regarding this query. We will be happy to assist you . 

Regards, 
Niranjan Kumar 


Igor
Replied On January 7, 2020 06:03 PM UTC

thanks Niranjan,

I have one more question.

How can i control the size of an form inside an panel?

So if i maximize or minimize they will 
Adapt (Like the Anchor Property)

Niranjan Kumar Gopalan [Syncfusion]
Replied On January 8, 2020 01:54 PM UTC

Hi Igor, 

Thanks for your update. 

To control the form size inside the panel set the Dock properties value of forms to Fill value. Therefore the forms size are updated when the panel re-sizes. Please refer the below code snippet for the same. If your requirement differs please let us know. 

C#: 
form1.Dock = DockStyle.Fill 

Regards, 
Niranjan Kumar 
 


Igor
Replied On January 8, 2020 04:50 PM UTC

Niranjan,

thanks by support my problem is solved

Niranjan Kumar Gopalan [Syncfusion]
Replied On January 9, 2020 04:05 AM UTC

Hi Igor, 

Thanks for your update. 

We will be happy to assist you further if you have any queries.  


Regards, 
Niranjan Kumar 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon