Newbie with Panel Question

N

NDB Europe

Hi There,

Hope everyone is well? Sorry but Newbie here and probably a very silly
question but i cant find any info anywhere.

On My project I have a Split container caller sctMain

I have 2 x Forms, called frmLeft & FrmRight

How Do I get the forms to display in the panels on the Split Container?

Many Kind Thanks
Regards
Si
 
I

Ignacio Machin ( .NET/ C# MVP )

Hi There,

Hope everyone is well? Sorry but Newbie here and probably a very silly
question but i cant find any info anywhere.

On My project I have a Split container caller sctMain

I have 2 x Forms, called frmLeft & FrmRight

How Do I get the forms to display in the panels on the Split Container?

Many Kind Thanks
Regards
Si

instead of Forms use Panels
 
I

Ignacio Machin ( .NET/ C# MVP )

Hi There,

Hope everyone is well? Sorry but Newbie here and probably a very silly
question but i cant find any info anywhere.

On My project I have a Split container caller sctMain

I have 2 x Forms, called frmLeft & FrmRight

How Do I get the forms to display in the panels on the Split Container?

Many Kind Thanks
Regards
Si

instead of Forms use Panels
 
N

NDB Europe

Hi There,

Sorry I forgot to say the forms are User Control:( Doh!

Cheers again
Si

message
Hi There,

Hope everyone is well? Sorry but Newbie here and probably a very silly
question but i cant find any info anywhere.

On My project I have a Split container caller sctMain

I have 2 x Forms, called frmLeft & FrmRight

How Do I get the forms to display in the panels on the Split Container?

Many Kind Thanks
Regards
Si

instead of Forms use Panels
 
N

NDB Europe

Hi There,

Sorry I forgot to say the forms are User Control:( Doh!

Cheers again
Si

message
Hi There,

Hope everyone is well? Sorry but Newbie here and probably a very silly
question but i cant find any info anywhere.

On My project I have a Split container caller sctMain

I have 2 x Forms, called frmLeft & FrmRight

How Do I get the forms to display in the panels on the Split Container?

Many Kind Thanks
Regards
Si

instead of Forms use Panels
 
N

NDB Europe

Hi Again,

Just as a follow up i know I can use the below for forms, just cant figure
our how to get a User Control to load:(

InitializeComponent();
Form2 formA = newForm2();
Form2 formB = newForm2();
formA.TopLevel = false;
formB.TopLevel = false;
splitContainer1.Panel1.Controls.Add(formA);
splitContainer1.Panel2.Controls.Add(formB);
formA.Show();
formB.Show();

Cheers Again
Si
 
N

NDB Europe

Hi Again,

Just as a follow up i know I can use the below for forms, just cant figure
our how to get a User Control to load:(

InitializeComponent();
Form2 formA = newForm2();
Form2 formB = newForm2();
formA.TopLevel = false;
formB.TopLevel = false;
splitContainer1.Panel1.Controls.Add(formA);
splitContainer1.Panel2.Controls.Add(formB);
formA.Show();
formB.Show();

Cheers Again
Si
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top