By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,238 Members | 1,485 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,238 IT Pros & Developers. It's quick & easy.

Drag Drop Outline?

P: n/a
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?
Nov 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Cor
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
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?

Nov 20 '05 #2

P: n/a
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.

"Cor" <no*@non.com> wrote in message
news:uH***************@TK2MSFTNGP12.phx.gbl...
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
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?


Nov 20 '05 #3

P: n/a
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.

"Kevin L" <no_spam@not_real_email.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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?

Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.