473,326 Members | 2,815 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,326 software developers and data experts.

Move object between panels using drag and drop

19
Hello,

I'm trying to write an application which will allow the user to move objects such as Labels between different Panels.

I've managed to move the objects in one panel (using MouseDown/MouseUp/MouseMove) but cannot drop the object to another panel. The objects actually stays bound to it's original owner's form.

The "Panel.DragEnter" only accept objects from outside the application (text files, pictures...)

Could you please advise ?

Thanks in advance
Oct 16 '10 #1
4 4176
Christian Binder
218 Expert 100+
How did you achieve your Drag&Drop-behavior? You have to call DoDragDrop of the control, e.g. Form.

Maybe you could post some of your codings?
Oct 18 '10 #2
siilexx
19
Hello,

I'm using myPanel.Controls.Add(myLabel) instead of drag and drop function.
I will try again with DoDragDrop.
Oct 18 '10 #3
siilexx
19
Actually I'm trying to build some kind of weekly agenda, including tasks and rendez-vous management as outlook does, and I'm using one panel for each day, but this doesn't seem to be the best way of working...
Do you have some experience in this kind of program ? Which kind of controls should I preferably use ?

Thank you
Oct 23 '10 #4
peochei
12
Maybe you can use some samples? There are some ready controls:
  1. http://www.codeproject.com/KB/docvie...endarView.aspx - pretty nice, LGPL licence,
  2. http://www.codeproject.com/KB/select...ardayview.aspx
I guess there are some more.
Oct 25 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: simon_s_li | last post by:
Hi, I am having problems using drag drop and re-ordering items. Example: When I drag and item from position 1 and drag it to position 3, I want to re-order all the items accordingly. This...
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...
4
by: zav | last post by:
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...
4
by: Qingdong Z. | last post by:
I have a VS.NET windows application which use drag-drop feather. It works fine when application start, but stops working after application run one or two days. The application is related to Video...
0
by: Oberon | last post by:
How do I navigate through records using drag 'n' drop controls? I have an example in C# for Windows forms that relies on BindingContext but this is not available for ASP.NET. How do I solve that...
3
by: Kevin L | last post by:
I am dragging Panel controls on a form (run-time). I am looking for a way to show an outline that is the size of the panel so the user can position the panel accurately. Is there a way to show...
0
by: Bernie Yaeger | last post by:
OK, I have drag-drop working between one listbox and another (and back) with the code below. But I can't get it to work when I change the selection mode to multi or multi extended. Any help...
0
by: MrNobody | last post by:
I have a custom Panel which will have smaller custom Panels added and drawn within it. I want to be able to re-order the arrangement of the inner Panels using drag n drop, and I want to do this...
5
by: =?Utf-8?B?UGFycm90?= | last post by:
Is there a way to perform a drag drop from a list box to a Gridview control on a web page? I can do it in a Windows form but I can't figure out how to do it on a web page. Dave
2
by: bob | last post by:
Hi all, I have a treeview that has drag drop. Works well enough but... If you drag out of bounds of the treeview the nodrop icon comes on. Fair enough. But when I move back inside the treeview...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.