I'm trying to develop a class which contains a graphic that will replace the title bar on a form. The object will stretch across the top of the form and will be invisible until the mouse hovers over it. The user can then use it to drag the form around the screen. When he unclicks and moves the mouse somewhere else, the graphic will dissapear.
I've got it mostly done using MouseMove, except it has some major flaws. As I'm dragging and suddenly move the mouse off the form quickly, the form flings out into space. I've used a Wait Window to track the forms coordinates, and the form flies to the lower-right limits of the coordinate space. Also, if I'm dragging and the mouse touches the menu system of the app or the taskbar of Windows, it does the same thing.
I've since read the warnings regarding using MouseMove and how it can cause cascading events, and I think I am experiencing such behavior. Is there a way to overcome this? Is there any other ways of doing this simply, without using the timer control?
Thanks in advance,
JL Miller
John L. Miller
Logikos, Inc.
"Solutions With Software"
Tel: 979-826-6034
Fax: 979-826-8845