[Mono-winforms-list] Trying to load a form in panel

RupeshT rupeshtarwade at rediffmail.com
Sat Mar 28 06:29:18 EDT 2009


Hi,

I am developing an application for MAC OS. I want to load a form in a panel.
Typical code that I write is something like below.

            Form1 form = new Form1();

            form.TopLevel = false;
            form.FormBorderStyle = FormBorderStyle.None;
            form.Dock = DockStyle.Fill;

            panel1.Controls.Add(form);
            panel1.AutoScroll = true;            
            panel1.BringToFront();

            form.Show();
            
This code does load the form in panel, but on MAC, the controls on the form
just go haywire %-|! I mean, out of the total textboxes and the buttons that
I have on the form, only few are visible. Also, if there are some controls
below the form, few of those are visible.

Is there any other way of achieving this functionality using mono?

Regards,
Rupesh.  
-- 
View this message in context: http://www.nabble.com/Trying-to-load-a-form-in-panel-tp22678619p22678619.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.



More information about the Mono-winforms-list mailing list