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

Determine when dragging a form has stopped.

How can I programmatically determine when a MDI child form has been dragged
from one location to another within its MDI parent form? Ideally I'd like to
trap some event that occurs when the dragging has stopped.

Thanks.
Nov 20 '07 #1
6 1104
Id say the dragging stops when the user lets go of the mouse button...

As for stopped moving I guess you could make ur own event....

Im a noob tho so im not sure...

"Bob Johnson" <A@B.comwrote in message
news:u%****************@TK2MSFTNGP03.phx.gbl...
How can I programmatically determine when a MDI child form has been
dragged from one location to another within its MDI parent form? Ideally
I'd like to trap some event that occurs when the dragging has stopped.

Thanks.
Nov 20 '07 #2
Hi John,

If you are not sure, or don't even have the foggiest idea of how to be
helpful here, then please feel free to NOT respond.

The problem with responding with useless information - as you did here - is
that it creates the perception that the question has in fact been answered.
The problem here is that others who might know the answer or could be
actually helpful might not bother to read the original question.

BTW: How in the world would you- in your best of intentions - think that
your answers could be in any way helpful? Am I supposed to read what you
wrote and think - "yes - that's it!". Sheesh. "user let's go of the mouse
button. Okay - great - how do we trap for that? "make ur own event" -
what? "ur" --- you are apparently so lazy that you can't even write out
"your". And even if I can get past that (which I can), then, okay I'll
write my own event... followup question for you then - when do I fire my own
event? - let me gusss - when the user "lets go" of the mouse button. Okay
great - how do we determine that? Oh, let me guess - I'll write my own
event. Wash, rinse, repeat - brilliant!

-Bob

"John Sheppard" <no****@spamspam.comwrote in message
news:fh********@news4.newsguy.com...
Id say the dragging stops when the user lets go of the mouse button...

As for stopped moving I guess you could make ur own event....

Im a noob tho so im not sure...

"Bob Johnson" <A@B.comwrote in message
news:u%****************@TK2MSFTNGP03.phx.gbl...
>How can I programmatically determine when a MDI child form has been
dragged from one location to another within its MDI parent form? Ideally
I'd like to trap some event that occurs when the dragging has stopped.

Thanks.

Nov 21 '07 #3
On 2007-11-20 17:16:08 -0800, "Bob Johnson" <A@B.comsaid:
Hi John,

If you are not sure, or don't even have the foggiest idea of how to be
helpful here, then please feel free to NOT respond.

The problem with responding with useless information - as you did here - is
that it creates the perception that the question has in fact been answered.
The problem here is that others who might know the answer or could be
actually helpful might not bother to read the original question.
For what it's worth, the thing most likely to get in the way of you
getting a good answer to your question is the broad, inappropriate
cross-posting. The more newsgroups you include, the more likely it is
you'll attract answers from someone who isn't going to provide the
answer you want or think is useful.

Also, I don't really see the point in berating the answer you got.
Maybe it wasn't really helpful, but I didn't see any sign that the guy
was yanking your chain. Assuming he was really trying to help,
criticizing him isn't a great way to encourage other people that also
might really try to help.

Pete

Nov 21 '07 #4
<snip>

RE:
>>I don't really see the point in berating the answer you got.
The point is to discourage such useless posts... my little part to help with
the signal-to-noise ratio. And yes, I know, explaining that, in itself,
hurts the signal-to-noise ratio...

RE:
>broad, inappropriate cross-posting.
Gotcha - maybe just the winforms group would have been best. I did think
about it before doing it, though... seems like nobody knew the answer to my
earlier/similar question from yesterday - so figured I'd widen the scope a
bit and refocus the question. I didn't know that 3 groups would be
considered as "broad"... I'll take that into account in the future.

Back to the OP: After all this there is apparently there is no way to
determine when a user has stopped moving/dragging a mdi child form. Do you
have any ideas on that?
Nov 21 '07 #5
Sorry,

Perhaps it wasnt helpful...but sometimes when no one else can answer little
things can trigger to help you think of other things...just offering what
little I know is all...

I guess what I was trying to get at, was that do you mean drag and drop as
you want to track when the mouse button is let go, or do you mean move as in
when the drag moves over a pixel...I realise i didnt state that very well
and that wasnt very helpful.

How could you have an event that determines when it stops moving? that would
require a timer and as far as I know there is no property that stores one.
So I'd guess youd have to make your own...

John

"Bob Johnson" <A@B.comwrote in message
news:Oh**************@TK2MSFTNGP04.phx.gbl...
<snip>

RE:
>>>I don't really see the point in berating the answer you got.

The point is to discourage such useless posts... my little part to help
with the signal-to-noise ratio. And yes, I know, explaining that, in
itself, hurts the signal-to-noise ratio...

RE:
>>broad, inappropriate cross-posting.
Gotcha - maybe just the winforms group would have been best. I did think
about it before doing it, though... seems like nobody knew the answer to
my earlier/similar question from yesterday - so figured I'd widen the
scope a bit and refocus the question. I didn't know that 3 groups would be
considered as "broad"... I'll take that into account in the future.

Back to the OP: After all this there is apparently there is no way to
determine when a user has stopped moving/dragging a mdi child form. Do you
have any ideas on that?
Nov 21 '07 #6
<snip>
it....Id say it says stuff about pejoratives and narcissism...
Speaking of pejoratives - referring to onesself as a "noob" is quite the
pejorative. And I agree with you 100% if you are implying that such
pejoratives should be avoided.

-Bob
Nov 22 '07 #7

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

Similar topics

3
by: Web Webon | last post by:
Hi everybody! I wonder if this is possible? I need to determine if a client is using "windows classic folders" or anything else. If I instantiate a Shell ActiveX object is there a way of...
88
by: Mike | last post by:
Is there a way to determine what a user's default email client is? I read a post from 3 years ago that said no. I guess I'm hoping something has come along since then.
2
by: Christian Blackburn | last post by:
Hi Gang, I would like to be able to drag and drop documents onto my application and have them open immediately thereafter. Can somebody point me towards a KB article or example? I could find a...
2
by: Tull Clancey | last post by:
Does anyone have, or can anyone suggest a URL for code to drag a control around a form at run time? VB.Net 2003. I have written stuff in VB6 to do this before, but a long time ago and I don't...
1
by: =?Utf-8?B?UmljaA==?= | last post by:
In a database search application (vb2005), the user wants to be able to scroll through records using the mousewheel. The data display form contains textboxes for the main data and a datagridview...
10
by: John Brown | last post by:
Hi there, Does anyone know how to (generically) determine the currently active form for an application using a "static" function (so I can call it from anywhere). There is no offiical way I've...
4
by: Jay | last post by:
Hi all, I know how to find a controls' position obviously (i.e.style left, right, top, offset, etc.), but what I'm a little stumped on is, if given two controls' positions, how can I tell if one...
6
by: Bob Johnson | last post by:
How can I programmatically determine when a MDI child form has been dragged from one location to another within its MDI parent form? Ideally I'd like to trap some event that occurs when the...
4
by: kimiraikkonen | last post by:
Hi, On my system which is 2.4GHZ P4 CPU, 1GB memory + 64MB DDR graphic card, if i create a simple picturebox docked on a form sized about 500x350 or less or more, doesn't matter, and also if i...
2
EinToR
by: EinToR | last post by:
I'm trying to set the opacity = .50 when dragging a windows form. Here's what I've got: public Form1() { InitializeComponent(); this.Move += new...
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: 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
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:
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
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
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...
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...

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.