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. Image for the cookie policy date

How save items using DockingManager control - Visual Basic

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

7 Replies

NK Niranjan Kumar Gopalan Syncfusion Team January 3, 2020 12:36 AM

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 



IG Igor January 6, 2020 04:55 PM

hi Niranjan,

thankyou for answer.


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

helped me lot 



NK Niranjan Kumar Gopalan Syncfusion Team January 6, 2020 07:55 PM

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 



IG Igor January 7, 2020 10:03 AM

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)


NK Niranjan Kumar Gopalan Syncfusion Team January 8, 2020 05:54 AM

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 
 



IG Igor January 8, 2020 08:50 AM

Niranjan,

thanks by support my problem is solved


NK Niranjan Kumar Gopalan Syncfusion Team January 8, 2020 08:05 PM

Hi Igor, 

Thanks for your update. 

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


Regards, 
Niranjan Kumar 


Loader.
Live Chat Icon For mobile
Up arrow icon