Connecting Tech Pros Worldwide Forums | Help | Site Map

Drag, Drop and Dock Form to another form

zav
Guest
 
Posts: n/a
#1: Nov 16 '05
Hi all i`m having a small problem with windows forms, i`m attempting to
provide the following functionality to a form.

Ability to drag and drop another form onto a form and then to dock this
form...

Quite a mouthful however a good example of this is within the VS.NET 6 IDE.
Grab your solution explorer panel and drop it outside of the IDE, then
drag/drop it back in and watch it dock.

I can achieve this using panels however im wondering if this is achievable
with whole forms.

Small side note I tried with setting the property Form.AllowDrop = true; and
then watching the events, mainly drag over, however no events are fired if
your moving one form over another. I`m guessing that its related to the form
im wishing to drop to being inactive?.

If anyone can help shed any light on this matter id be happy to hear from you.

Thanks
John.

Sean Hederman
Guest
 
Posts: n/a
#2: Nov 16 '05

re: Drag, Drop and Dock Form to another form


"zav" <zav@discussions.microsoft.com> wrote in message
news:B1B7996E-0EB7-4F01-B267-CFE6DEB6A66B@microsoft.com...[color=blue]
> Hi all i`m having a small problem with windows forms, i`m attempting to
> provide the following functionality to a form.
>
> Ability to drag and drop another form onto a form and then to dock this
> form...[/color]

This is very tricky and I suggest you have a look for third-party controls
to assist you.
[color=blue]
> Quite a mouthful however a good example of this is within the VS.NET 6
> IDE.
> Grab your solution explorer panel and drop it outside of the IDE, then
> drag/drop it back in and watch it dock.
>
> I can achieve this using panels however im wondering if this is achievable
> with whole forms.
>
> Small side note I tried with setting the property Form.AllowDrop = true;
> and
> then watching the events, mainly drag over, however no events are fired if
> your moving one form over another. I`m guessing that its related to the
> form
> im wishing to drop to being inactive?.[/color]

No, it's related to the fact that forms aren't droppable objects.
[color=blue]
> If anyone can help shed any light on this matter id be happy to hear from
> you.
>
> Thanks
> John.[/color]


zav
Guest
 
Posts: n/a
#3: Nov 16 '05

re: Drag, Drop and Dock Form to another form


Thank you sean, i did consider that however i'm looking to do this without
the use of third pary tools... Reason being most just use the panel technique
and you dont always get what you really want with 3rd party tools.

"Sean Hederman" wrote:
[color=blue]
> "zav" <zav@discussions.microsoft.com> wrote in message
> news:B1B7996E-0EB7-4F01-B267-CFE6DEB6A66B@microsoft.com...[color=green]
> > Hi all i`m having a small problem with windows forms, i`m attempting to
> > provide the following functionality to a form.
> >
> > Ability to drag and drop another form onto a form and then to dock this
> > form...[/color]
>
> This is very tricky and I suggest you have a look for third-party controls
> to assist you.
>[color=green]
> > Quite a mouthful however a good example of this is within the VS.NET 6
> > IDE.
> > Grab your solution explorer panel and drop it outside of the IDE, then
> > drag/drop it back in and watch it dock.
> >
> > I can achieve this using panels however im wondering if this is achievable
> > with whole forms.
> >
> > Small side note I tried with setting the property Form.AllowDrop = true;
> > and
> > then watching the events, mainly drag over, however no events are fired if
> > your moving one form over another. I`m guessing that its related to the
> > form
> > im wishing to drop to being inactive?.[/color]
>
> No, it's related to the fact that forms aren't droppable objects.
>[color=green]
> > If anyone can help shed any light on this matter id be happy to hear from
> > you.
> >
> > Thanks
> > John.[/color]
>
>
>[/color]
Sean Hederman
Guest
 
Posts: n/a
#4: Nov 16 '05

re: Drag, Drop and Dock Form to another form


Have a look at http://www.thecodeproject.com/cs/mis...gicdocking.asp,
looks like you can host Forms in it.

"zav" <zav@discussions.microsoft.com> wrote in message
news:3A4E6A64-1CB4-4E8E-A0F4-6C5A7C63E0AC@microsoft.com...[color=blue]
> Thank you sean, i did consider that however i'm looking to do this without
> the use of third pary tools... Reason being most just use the panel
> technique
> and you dont always get what you really want with 3rd party tools.
>
> "Sean Hederman" wrote:
>[color=green]
>> "zav" <zav@discussions.microsoft.com> wrote in message
>> news:B1B7996E-0EB7-4F01-B267-CFE6DEB6A66B@microsoft.com...[color=darkred]
>> > Hi all i`m having a small problem with windows forms, i`m attempting to
>> > provide the following functionality to a form.
>> >
>> > Ability to drag and drop another form onto a form and then to dock this
>> > form...[/color]
>>
>> This is very tricky and I suggest you have a look for third-party
>> controls
>> to assist you.
>>[color=darkred]
>> > Quite a mouthful however a good example of this is within the VS.NET 6
>> > IDE.
>> > Grab your solution explorer panel and drop it outside of the IDE, then
>> > drag/drop it back in and watch it dock.
>> >
>> > I can achieve this using panels however im wondering if this is
>> > achievable
>> > with whole forms.
>> >
>> > Small side note I tried with setting the property Form.AllowDrop =
>> > true;
>> > and
>> > then watching the events, mainly drag over, however no events are fired
>> > if
>> > your moving one form over another. I`m guessing that its related to the
>> > form
>> > im wishing to drop to being inactive?.[/color]
>>
>> No, it's related to the fact that forms aren't droppable objects.
>>[color=darkred]
>> > If anyone can help shed any light on this matter id be happy to hear
>> > from
>> > you.
>> >
>> > Thanks
>> > John.[/color]
>>
>>
>>[/color][/color]


zav
Guest
 
Posts: n/a
#5: Nov 16 '05

re: Drag, Drop and Dock Form to another form


thanks i'll have a good read through it....

"Sean Hederman" wrote:
[color=blue]
> Have a look at http://www.thecodeproject.com/cs/mis...gicdocking.asp,
> looks like you can host Forms in it.
>
> "zav" <zav@discussions.microsoft.com> wrote in message
> news:3A4E6A64-1CB4-4E8E-A0F4-6C5A7C63E0AC@microsoft.com...[color=green]
> > Thank you sean, i did consider that however i'm looking to do this without
> > the use of third pary tools... Reason being most just use the panel
> > technique
> > and you dont always get what you really want with 3rd party tools.
> >
> > "Sean Hederman" wrote:
> >[color=darkred]
> >> "zav" <zav@discussions.microsoft.com> wrote in message
> >> news:B1B7996E-0EB7-4F01-B267-CFE6DEB6A66B@microsoft.com...
> >> > Hi all i`m having a small problem with windows forms, i`m attempting to
> >> > provide the following functionality to a form.
> >> >
> >> > Ability to drag and drop another form onto a form and then to dock this
> >> > form...
> >>
> >> This is very tricky and I suggest you have a look for third-party
> >> controls
> >> to assist you.
> >>
> >> > Quite a mouthful however a good example of this is within the VS.NET 6
> >> > IDE.
> >> > Grab your solution explorer panel and drop it outside of the IDE, then
> >> > drag/drop it back in and watch it dock.
> >> >
> >> > I can achieve this using panels however im wondering if this is
> >> > achievable
> >> > with whole forms.
> >> >
> >> > Small side note I tried with setting the property Form.AllowDrop =
> >> > true;
> >> > and
> >> > then watching the events, mainly drag over, however no events are fired
> >> > if
> >> > your moving one form over another. I`m guessing that its related to the
> >> > form
> >> > im wishing to drop to being inactive?.
> >>
> >> No, it's related to the fact that forms aren't droppable objects.
> >>
> >> > If anyone can help shed any light on this matter id be happy to hear
> >> > from
> >> > you.
> >> >
> >> > Thanks
> >> > John.
> >>
> >>
> >>[/color][/color]
>
>
>[/color]
Closed Thread