Drag Drop Outline?

  • Thread starter Thread starter Kevin L
  • Start date Start date
K

Kevin L

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 an outline of the panel control as it is moved on the
form?
 
Hi Kevin,

If I understand your question right, than I think you need the Groupbox
instead of the Panel.

The borderline is the difference between those 2

I hope this helps,

Cor
 
Hello,
Actually, I think that you are misunderstanding my question.

I am using Panels in my application. I also allow the user to reposition
those panels during runtime. When the user repositions the Panel through
Drag/Drop, it is not easy to tell where the box will be repositioned on the
form. I am looking to see if there is a way to show the panel, while it is
being dragged, or show an outline of the panel so the user can see exactly
where it will be dropped when they release the mouse button.
 
I found my answer. 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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top