473,405 Members | 2,160 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Drag, Drop and Dock Form to another form

zav
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.
Nov 16 '05 #1
4 7231
"zav" <za*@discussions.microsoft.com> wrote in message
news:B1**********************************@microsof t.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.

Nov 16 '05 #2
zav
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:
"zav" <za*@discussions.microsoft.com> wrote in message
news:B1**********************************@microsof t.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.


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

"zav" <za*@discussions.microsoft.com> wrote in message
news:3A**********************************@microsof t.com...
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:
"zav" <za*@discussions.microsoft.com> wrote in message
news:B1**********************************@microsof t.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.


Nov 16 '05 #4
zav
thanks i'll have a good read through it....

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

"zav" <za*@discussions.microsoft.com> wrote in message
news:3A**********************************@microsof t.com...
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:
"zav" <za*@discussions.microsoft.com> wrote in message
news:B1**********************************@microsof t.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.


Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: SamSpade | last post by:
There seems to be two ways to put things on the clipboard ( I don't mean different formats): SetClipboardData and OleSetClipboard If I want to get data off the clipboard do I care how it was put...
3
by: Ajay Krishnan Thampi | last post by:
I have a slight problem implementing 'drag and drop' from a datagrid to a tree-view. I have pasted my code below. Someone please advice me on what to do...pretty blur right now. ==code== ...
0
by: Neven Klofutar | last post by:
Hi, I would like to create something like a "puzzle control" that could use drag and drop technique to put together the "whole picture". I would like to set some fixed areas on the page so when...
6
by: jojobar | last post by:
Hello, I look at the asp.net 2.0 web parts tutorial on the asp.net web site. I tried to run it under firefox browser but it did not run. If I want to use this feature in a commercial product...
2
by: Dwayne Gaddy | last post by:
Hey all, I have a windows form with a list boxes. I have data binded the list boxes with data from my sql database. I want to use drag and drop to allow users to choose different options from...
6
by: Dave | last post by:
I am trying to implement drag and drop in a C# app, but for some reason I can't get it to call the GiveFeedback event. I have done everything by the book as far as I can tell, but a breakpoint in...
0
by: RHSFSS | last post by:
Hi, I have a Drag and Drop registration problem (See http://www.thescripts.com/forum/thread434707.html for similar problem post), can anyone out thereadvise on the best solution? I have a .NET 2.0 ...
0
by: jackob | last post by:
hello, i have an urgent case, i wanna know how to drag and drop panels created dynamically inside a big panel?? here's below the code i make but it didn't work : plz if anyone can help me ... ...
16
by: John | last post by:
I am looking for VBA code that will work with Access 2003 to enable dragging and dropping a file/folder name from Windows XP Explorer into an Access form's text box. This is a common functionality...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.