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

How do i create border used to drag controls

rob
I'm trying to create a UI which allows to move objects. I
would like to give reall drag and drop feature.. I do not
want to give fake drag and drop.

When the user selects it should create a border and drag
that border and drop it in the form... (just like moving
icons in windows desktop)

Any idea ?
Nov 20 '05 #1
2 1127
* "rob" <an*******@discussions.microsoft.com> scripsit:
I'm trying to create a UI which allows to move objects. I
would like to give reall drag and drop feature.. I do not
want to give fake drag and drop.


Have a look at the implementation of SharpDevelop's form editor:

<http://www.icsharpcode.net/OpenSource/SD>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2
Hi Rob,
I had the same issue as you when dragging Panel controls in my
application.

I solved it my doing this:

I have taken the code that was in my DRAGDROP event and COPIED it to my
DRAGOVER event.
This basically drops the control multiple times, but appears smooth to the
user. It does not show an outline, it actually shows the control (which is
better).

"rob" <an*******@discussions.microsoft.com> wrote in message
news:03****************************@phx.gbl...
I'm trying to create a UI which allows to move objects. I
would like to give reall drag and drop feature.. I do not
want to give fake drag and drop.

When the user selects it should create a border and drag
that border and drop it in the form... (just like moving
icons in windows desktop)

Any idea ?

Nov 20 '05 #3

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

Similar topics

3
by: RSB | last post by:
Hi Every one Having tuff time creating web controls Dynamically. All i am trying to do is read a table and generate a list of ASP TEXT Box. So how do i create this Control dynamically and where...
4
by: Miguel Dias Moura | last post by:
Hello, I created a datalist in an ASP.Net / VB page. I display the image and price of a few products. When a user clicks an image I want to load the page "detail.aspx?number=id" and send the...
5
by: Marek | last post by:
I'm trying to create a web page. I will have one column with records (table filled from dataset). If mouse will be on one from this records, i want to show a hint what is it (like in Windows -...
5
by: Alex Nitulescu | last post by:
Hi. Because I'm a beginner in creating controls, I spent more than two *&^#$ hours to create this "login" as a custom control and to make it work properly: ...
4
by: Steven | last post by:
Hi, I want to create an image that looks exactly the same as the things I see in my application. I have an application in which you can create some controls, drag them anywhere you like. Now I...
6
by: Dan Soendergaard | last post by:
Hi, I'm writing my own control and I would like it to integrate nicely into the rest of my application, which uses the standard controls primarely. I therefore wanted my control to use the same...
4
by: raghunadhs | last post by:
Hi everybody! I would like to develope an application, in this a should abel to create user defined controls. i should have some properties. when ever i drag and drop that control it should apper...
0
by: raghunadhs | last post by:
Hi all! i am developing an application in v.b 6.0. it consists of some user controls (developed by using Activex controls...)... I am able to drag and drop the user contols on the screen and these...
9
by: Gord | last post by:
In VB6, a custom dialog can be easily created by adding a new form, adding whatever controls you like, sizing it as you like, adding code and then just loading/unloading it whenever you like....
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.