473,406 Members | 2,439 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.

Dragging Borderless Forms

Liz

I need to implement dragging a borderless form by clicking/dragging on the
form surface. Using the "standard" approach (setting "CanMove" flag on
MouseDown, moving the form by the delta of the absolute mouse movement,
unsetting the "CanMove" flag on MouseUp) I am getting a lot of "jerky"
movement of the form and can't seem to get it smooth.

I also have noticed that MouseMove seems to fire even when there is no
motion of the mouse at all (?) ... I'm using a wireless mouse; does that
make a difference ?

Can anyone point me to a solution that implements smooth movement of the
form on mouse dragging ? I would think this is a pretty common problem
......

TIA

Apr 21 '06 #1
3 1624
http://www.dotnetrix.co.uk/misc.html

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Liz" <li*@no-spam.org> wrote in message
news:Ri*******************@fe08.news.easynews.com. ..

I need to implement dragging a borderless form by clicking/dragging on the
form surface. Using the "standard" approach (setting "CanMove" flag on
MouseDown, moving the form by the delta of the absolute mouse movement,
unsetting the "CanMove" flag on MouseUp) I am getting a lot of "jerky"
movement of the form and can't seem to get it smooth.

I also have noticed that MouseMove seems to fire even when there is no
motion of the mouse at all (?) ... I'm using a wireless mouse; does that
make a difference ?

Can anyone point me to a solution that implements smooth movement of the
form on mouse dragging ? I would think this is a pretty common problem
.....

TIA

Apr 21 '06 #2
Liz

"Mick Doherty"
<EX***********@AND.REMOVE.SQUAREBRACKETS.[mdaudi100#ntlworld.com]> wrote in
message news:%2****************@TK2MSFTNGP05.phx.gbl...
http://www.dotnetrix.co.uk/misc.html
Works great, Mick .... thank you ... now I have to figure out WHY and HOW
they work ! It appears that the essence of the algorithm is "tricking"
Windows into thinking the user clicked on the title bar rather than the
client area of the form .... (???) .... clever ....

L

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Liz" <li*@no-spam.org> wrote in message
news:Ri*******************@fe08.news.easynews.com. ..

I need to implement dragging a borderless form by clicking/dragging on
the form surface. Using the "standard" approach (setting "CanMove" flag
on MouseDown, moving the form by the delta of the absolute mouse
movement, unsetting the "CanMove" flag on MouseUp) I am getting a lot of
"jerky" movement of the form and can't seem to get it smooth.

I also have noticed that MouseMove seems to fire even when there is no
motion of the mouse at all (?) ... I'm using a wireless mouse; does that
make a difference ?

Can anyone point me to a solution that implements smooth movement of the
form on mouse dragging ? I would think this is a pretty common problem
.....

TIA


Apr 22 '06 #3

"Liz" <li*@no-spam.org> wrote in message
news:Vx*******************@fe01.news.easynews.com. ..

Works great, Mick .... thank you ...
You're welcome!
now I have to figure out WHY and HOW they work ! It appears that the
essence of the algorithm is "tricking" Windows into thinking the user
clicked on the title bar rather than the client area of the form .... (???)
.... clever ....


That's exactly how it works.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
Apr 22 '06 #4

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

Similar topics

3
by: Ludovic SOEUR | last post by:
I do not understand why when a dragging operation is started with DoDragDrop, no exception is handled. The following lines illustrate what I mean. In Form2_DragDrop event, I raise an exception at...
6
by: Nikki | last post by:
Hi, Can anybody help me in solving this problem. I m developing an application in which the main application form is borderless. now i m not able to move the application form with the help of...
1
by: Sagaert Johan | last post by:
Hi While dragging an object onto another, i want to show a tooltip or text balloon that informs the user where it can be dropped. What about showing a 50% opague thumbnail image ? I need...
16
by: Geoff Jones | last post by:
Hiya Could anybody direct me to some examples of code to do the following: Display a bitmap on a form which can then be moved about i.e. dragged, using the left down button of the mouse. ...
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...
0
by: Brian Tkatch | last post by:
Been trying to figure out how to show borderless forms indside an MDI Form, without showing the border at all. Given that (in our case) only one such form needs to show at a time, we were able...
5
by: ThunderMusic | last post by:
Hi I'm currently developping a skinnable form by using a borderless form (Form.FormBorderStyle=None). Is it the right way to go in the first place? if it is. Assuming that when there is no border...
3
by: Rick | last post by:
I know I seen this before but IO cannot find it. How to you drag a borderless form in Vb.net 2005
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.