I am trying to take a form and based on a selection from a list, it will
open a form and bind it to the main form so it looks like one form.

In VB6 you could do this using a few different 3rd Party controls, one was
the Sheridan/Infragistics splitter control. You could bind a form to a
specific pane of the splitter control.

Does anyone know of a way to do this using .NET.

Loren

Re: Forms within one form by hirf-spam-me-here

hirf-spam-me-here
Thu Jul 15 16:58:14 CDT 2004

* "Loren Dummer" <ldummer@isaconsultants.com> scripsit:
> I am trying to take a form and based on a selection from a list, it will
> open a form and bind it to the main form so it looks like one form.
>
> In VB6 you could do this using a few different 3rd Party controls, one was
> the Sheridan/Infragistics splitter control. You could bind a form to a
> specific pane of the splitter control.

I am not sure what you want to do, but does the .NET splitter control +
usercontrols fit your needs?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Re: Forms within one form by Lloyd

Lloyd
Thu Jul 15 18:29:45 CDT 2004

Not sure you want to use forms instead of usercontrols but if you want to,
create the form using panels and splitters (I have used the Sheridan
splitter control and it is much easier to use).

When you want to put a form into the mainform add the form to the panels
controls collection. You will have to set the TopLevel = False for the form
as well. I got this to work but it had many strange behaviours.

Lloyd Sheen

"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:%23Xk7abraEHA.3804@TK2MSFTNGP10.phx.gbl...
> * "Loren Dummer" <ldummer@isaconsultants.com> scripsit:
> > I am trying to take a form and based on a selection from a list, it will
> > open a form and bind it to the main form so it looks like one form.
> >
> > In VB6 you could do this using a few different 3rd Party controls, one
was
> > the Sheridan/Infragistics splitter control. You could bind a form to a
> > specific pane of the splitter control.
>
> I am not sure what you want to do, but does the .NET splitter control +
> usercontrols fit your needs?
>
> --
> Herfried K. Wagner [MVP]
> <URL:http://dotnet.mvps.org/>



Re: Forms within one form by Jay

Jay
Fri Jul 16 03:49:54 CDT 2004

i am not sure whether its help u or not

Create two form
Form1 and form2. place a panel control in the form 2 and put a some control
inside the panel.
From the Form1 you can create a instance of the form2
and put a code like this
Panel objPanel = (Panel) Form2.controls(0)
Form1.controls.add(objPanel);


Regards
Jay
"Loren Dummer" <ldummer@isaconsultants.com> wrote in message
news:O5Xg7WraEHA.3996@TK2MSFTNGP12.phx.gbl...
> I am trying to take a form and based on a selection from a list, it will
> open a form and bind it to the main form so it looks like one form.
>
> In VB6 you could do this using a few different 3rd Party controls, one was
> the Sheridan/Infragistics splitter control. You could bind a form to a
> specific pane of the splitter control.
>
> Does anyone know of a way to do this using .NET.
>
> Loren
>
>



Re: Forms within one form by Éric

Éric
Fri Jul 16 05:21:02 CDT 2004

(I did post it yesterday but I don't see my post so I retry)

Create a form (that will become your hosted form) having the ControlBox
property set to False and the FormBorderStyle property set to None.

Now create another form (that will be the parent form) and add this code:
Dim x As New Form2()

x.TopLevel = False

Me.TabPage2.Controls.Add(x)

x.Left = 100

x.Show()


--

HTH

Éric Moreau, MCSD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Concept S2i inc.(www.s2i.com)



--

HTH

Éric Moreau, MCSD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Concept S2i inc.(www.s2i.com)


"Loren Dummer" <ldummer@isaconsultants.com> wrote in message
news:O5Xg7WraEHA.3996@TK2MSFTNGP12.phx.gbl...
> I am trying to take a form and based on a selection from a list, it will
> open a form and bind it to the main form so it looks like one form.
>
> In VB6 you could do this using a few different 3rd Party controls, one was
> the Sheridan/Infragistics splitter control. You could bind a form to a
> specific pane of the splitter control.
>
> Does anyone know of a way to do this using .NET.
>
> Loren
>
>