473,387 Members | 1,834 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,387 software developers and data experts.

Drag and drop a control

Hi All,

Is it possible to drag a control and move to a desired location on the
form. I have developed an user control and would like to give the user
to arrange the user controls according to his wish during run time. I
can find code where data is dragged and dropped to a target. But in
this case, there will be no target. The user can drag the control and
place anywhere on the form (GUI).

Application is to be developed on VB.NET 2003.

Thanks in Advance,

Boss

Jun 28 '07 #1
3 8755
Try looking at these:

http://www.codeproject.com/vb/net/Ru...leControls.asp
http://www.codeproject.com/miscctrl/dblsubclasswnd.asp
http://www.codeproject.com/cs/miscct...leControls.asp

Cheers,
Johnny J.


<an***********@gmail.comwrote in message
news:11*********************@e9g2000prf.googlegrou ps.com...
Hi All,

Is it possible to drag a control and move to a desired location on the
form. I have developed an user control and would like to give the user
to arrange the user controls according to his wish during run time. I
can find code where data is dragged and dropped to a target. But in
this case, there will be no target. The user can drag the control and
place anywhere on the form (GUI).

Application is to be developed on VB.NET 2003.

Thanks in Advance,

Boss

Jun 28 '07 #2
Is it possible to drag a control and move to a desired location on the
form. I have developed an user control and would like to give the user
to arrange the user controls according to his wish during run time. I
can find code where data is dragged and dropped to a target. But in
this case, there will be no target. The user can drag the control and
place anywhere on the form (GUI).
A commercial option from Developer Express : http://www.devexpress.com/Products/N...LayoutControl/

--
Rory
Jun 28 '07 #3
On Jun 28, 3:46 am, "Johnny Jörgensen" <j...@altcom.sewrote:
Try looking at these:

http://www.codeproject.com/vb/net/Ru...leControls.asp

Cheers,
Johnny J.

<anujithsan...@gmail.comwrote in message

news:11*********************@e9g2000prf.googlegrou ps.com...
Hi All,
Is it possible to drag a control and move to a desired location on the
form. I have developed an user control and would like to give the user
to arrange the user controls according to his wish during run time. I
can find code where data is dragged and dropped to a target. But in
this case, there will be no target. The user can drag the control and
place anywhere on the form (GUI).
Application is to be developed on VB.NET 2003.
Thanks in Advance,
Boss
Also, if the OP is interested in allowing the user to resize his
movable controls the following should help (shameless!):

http://www.codeproject.com/cs/miscct...rolresizer.asp

Thanks,

Seth Rowe

Jun 28 '07 #4

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

Similar topics

1
by: Curtis Justus | last post by:
Hi, My goal is to have a series of thumbnail images on a control/panel and to drag/drop those items onto another control (i.e. a treeview). I am able to drag one item and need to somehow select...
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: 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...
1
by: Kevin L | last post by:
I have a Panel control that I currently allow the user to drag and reposition on a form at runtime. This Panel control contains a Label control. I would like to allow the user to drag the PANEL...
0
by: Pesso | last post by:
I'm loading a text file to a RichTextBox control to drag a selection of a text and drop it into a tree view control. It works except after the drag and drop operation the RichTextBox scrolls to the...
1
by: timnels | last post by:
I have created a muti-select treeview control. Problem is I am now trying to implement drag/drop in the application that uses it. It seems the mouse down and mouse move events fire before the...
0
by: arvinds | last post by:
I have an application in which I have 2 forms. 1.Review Form 2. FilmForm. Review Form is used for Loading some images and we can transfer the Images from Review From to FilmForm by Drag-Drop...
0
by: Mohit | last post by:
Hi, I have a win form having a web browser control on it. I want to have drag drop functionality on web browser control. My real need is - I should any how get the file name(s) along with path(s)...
2
by: deccio | last post by:
I have create an activex Control with Visual studio 2005 and framework 2.0 in c# to add drag & drop functionality to upload multi file. When I use it in a windows form it work fine. Infact if I...
1
by: GriffinWolf | last post by:
Hi, I am using VB6 for a school project. In my program, certain objects (currently Image boxes) need to be dragged to other areas of the screen. If they are placed over another image, they...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.