Achieve a specific layout

Hi,

I would like to achieve the following layout as attached here. There are 3 panels, one docked to the top, one to the left and one fill. Clicking on buttons on the left panel needs to open a new tabbed window to the right(which would be a form or a form inside a panel. Could you guide me?

Thanks in advance



Attachment: image79594_8c03d966.zip

10 Replies

SN Sudharsan Narayanan Syncfusion Team February 3, 2022 04:58 PM UTC

Hi FARZIN,

We have prepared the sample to achieve your Specific layout by using the DockControl method in the DockingManager and opened the tabbed window with a button click. So,
Please find the sample at the below link,

Sample: https://www.syncfusion.com/downloads/support/forum/172518/ze/DockingManagerLayout434216666

Link: https://help.syncfusion.com/windowsforms/docking-manager/getting-started

Please check the above sample and let me know your concerns.

Regards,
Sudharsan



FA FARZIN February 14, 2022 02:22 PM UTC

Hi,

Thank You for the prompt response. I went through the sample,  however, i need to open a form in the red area. Any ideas on how to do that?Capture.PNG



SN Sudharsan Narayanan Syncfusion Team February 16, 2022 03:08 AM UTC

Hi FARZIN,

We have prepared the sample to achieve your specific layout by using the SetAsMDIChild method in the DockingManager and opened the MDI window(form) as shown in the red area. So, please find the sample at the below link,

Sample: https://www.syncfusion.com/downloads/support/forum/172518/ze/DockingManager_MDIForm-960684952

Link: https://help.syncfusion.com/windowsforms/docking-manager/mdi-window#make-mdi-child

Please check the above sample and let me know your concerns. If we misunderstood your layout, please share more details about your requirements and pictorial representation. It would be helpful for us to provide a solution quickly.


Regards,
Sudharsan



FA FARZIN February 16, 2022 11:01 AM UTC

Hi,

Thanks for your reply, I was able to achieve what i was looking for by using this in the button click event :

            frmtest doc = new frmtest();
            doc.FormBorderStyle = FormBorderStyle.None;
            this.dockingManager1.SetEnableDocking(doc, true);
            this.dockingManager1.SetDockIcon(doc, 0);
            this.dockingManager1.SetDockLabel(doc, doc.Text);
            //this.dockingManager1.SetAsMDIChild(doc, false);
            dockingManager1.SetWindowMode(doc, WindowMode.Document);
            dockingManager1.DockAsDocument(doc);

Thanks for your help in pushing me in the right direction!

I had another question, is it possible to open another form, say frmtest2 from the above form - frmtest and make it behave like a modal form?

T



SN Sudharsan Narayanan Syncfusion Team February 18, 2022 03:09 AM UTC

Hi FARZIN,

We have prepared the sample to achieve your specific layout by using the SetAsMDIChild method in the DockingManager and opened the model form by using the button click event. So, please find the sample at the below link,

Sample: https://www.syncfusion.com/downloads/support/forum/172518/ze/DockingManager_MultipleForm912577641

Please check the above sample and let me know your concerns. If we misunderstood your layout, please share more details about your requirements and pictorial representation. It would be helpful for us to provide a solution quickly.

Regards,
Sudharsan



FA FARZIN February 18, 2022 10:33 AM UTC

Hi,


Thank you for your reply. But, in the above sample, you have just opened two forms on the button click. Here is what i want:

  1. open a form in a tab by clicking test button below : (I was able to achieve this)

 Capture.PNG


Here you can see the form opened as a tab :



Now, what I want is to open another form as another tab next to this form by clicking on button 1- say - 'Modal Form' - modally i.e. wait for the form close, before going back to 'TEST CHILD FORM'.

Hope you will point me i



SN Sudharsan Narayanan Syncfusion Team February 21, 2022 06:08 PM UTC

Hi FARZIN,

We have prepared the sample to achieve your specific layout by using the DockAsDocument method in the DockingManager and opened the model form by using the button click event. So, please find the sample at the below link,

Sample: https://www.syncfusion.com/downloads/support/forum/172518/ze/DockingManager_Document-1084167475

Please check the above sample and let me know your concerns. If we misunderstood your layout, please share more details about your requirements and pictorial representation. It would be helpful for us to provide a solution quickly.

Regards,
Sudharsan
 



FA FARZIN February 22, 2022 11:22 AM UTC

Hi,

In this sample, you have opened the modal form from a panel on the main form. However, my requirement is to open a form from the main form called 'TEST CHILD FORM' and then open a modal form from 'TEST CHILD FORM' ,not a panel.

Hope you will assist me!

Thanks!



SN Sudharsan Narayanan Syncfusion Team March 2, 2022 03:49 AM UTC

Hi FARZIN,

In further analyze, Model form can’t be added as child to the control. It will be depending on the parent control by using the ShowDialog method. So, we can determine the model form as mentioned in the Microsoft Documentation. Please check the link for the more details,

Link: https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.form.modal?view=windowsdesktop-6.0

Please check and let us know your concerns.
If you need any further assistance on this.

Regards,
Sudharsan
 



FA FARZIN March 7, 2022 11:23 AM UTC

Thanks for the response


Loader.
Up arrow icon