473,654 Members | 3,062 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Overrides Sub onMouseMove

I have added the Overrides proc onMouseMove like
Protected Overrides Sub onMouseMove(ByV al e As
System.Windows. Forms.MouseEven tArgs)

...........

End Sub

This proc supposed to fire when I move the mouse. When I am moving mouse
over the form it fires. But if mouse is over any control (textbox, listbox
etc) procedure does not fire.

I need to catch mouse move over the datagrid.

What is wrong?

Thank you


Nov 20 '05 #1
5 2254
The mouse move message doesn't go to the form when the mouse is over another
control - it goes to that control.

"Iouri" <io***@hotsheet .com> wrote in message
news:u$******** ******@TK2MSFTN GP12.phx.gbl...
I have added the Overrides proc onMouseMove like
Protected Overrides Sub onMouseMove(ByV al e As
System.Windows. Forms.MouseEven tArgs)

..........

End Sub

This proc supposed to fire when I move the mouse. When I am moving mouse
over the form it fires. But if mouse is over any control (textbox, listbox
etc) procedure does not fire.

I need to catch mouse move over the datagrid.

What is wrong?

Thank you

Nov 20 '05 #2
How about using the Data Grids mousemove?
Nov 20 '05 #3
Cor
Hi Iouri
I need to catch mouse move over the datagrid.

What is wrong?

I think that you search for a very difficult solution while the events
mouseEnter and a MouseLeave from the datagrid could be sufficient.

Cor
Nov 20 '05 #4
I need to verride the column resizing
if I am doing like
Protected Overrides Sub onMouseMove(ByV al e As
System.Windows. Forms.MouseEven tArgs)

Dim hti As DataGrid.HitTes tInfo = dg.HitTest(New Point(e.X, e.Y))

If hti.Type = DataGrid.HitTes tType.ColumnRes ize Then

Return 'no baseclass call

End If

MyBase.OnMouseM ove(e)

End Sub

it does not fire because it is over control

If I am using

Private Sub dg_MouseMove(By Val sender As Object, ByVal e As
System.Windows. Forms.MouseEven tArgs) Handles dg.MouseMove

it fires, but does not override
"Iouri" <io***@hotsheet .com> wrote in message
news:u$******** ******@TK2MSFTN GP12.phx.gbl...
I have added the Overrides proc onMouseMove like
Protected Overrides Sub onMouseMove(ByV al e As
System.Windows. Forms.MouseEven tArgs)

..........

End Sub

This proc supposed to fire when I move the mouse. When I am moving mouse
over the form it fires. But if mouse is over any control (textbox, listbox
etc) procedure does not fire.

I need to catch mouse move over the datagrid.

What is wrong?

Thank you

Nov 20 '05 #5
Thank you
"Charlie Williams" <an*******@disc ussions.microso ft.com> wrote in message
news:A4******** *************** ***********@mic rosoft.com...
If you wish to override the base functionality, you should derive from DataGrid and override OnMouseMove. By handling the event, you are simply
being notified when the mouse is moved and nothing more.
Alternatively, you could explicitly set the width of the column if the user tries to resize it.
As an aside, I, myself, would think twice about using an app that

intentionally went out of its way to make the UI less customizable. But
that's just me...
Nov 20 '05 #6

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

Similar topics

3
5706
by: Gary Mayor | last post by:
Hi, I'm re phrasing and earlier question as the earlier question doesn't make to much sense. I using document.onmousemove to move a <div line on the screen. At the moment if I click and move the mouse over the image it doesn't move the line but if I click off the image and move the mouse the line moves like it's supposed to. Also if I click it off the image and move the mouse over the image it then works. Something on clicking the image...
2
2769
by: Mariusz | last post by:
Hello, I'm trying to do drag'n'drop where You can see elements that You are dragging (table rows exactly) but I have small problem. Here is code sample var move = false; function onDragStart(id) { move = true; return true; }
5
5501
by: Ravi | last post by:
In IE (tested IE6 on W2k&WXP) onmousemove event appears to fire continually when mouse is over the document and not moving or touched at all, even when mouse is physically detached from the computer. Same page on Firefox works well (event fires only when mouse moves, not when it is static on the document). Seems a bug, doesn't it? Anyone knows something about this or a solution?
5
289
by: Iouri | last post by:
I have added the Overrides proc onMouseMove like Protected Overrides Sub onMouseMove(ByVal e As System.Windows.Forms.MouseEventArgs) ........... End Sub This proc supposed to fire when I move the mouse. When I am moving mouse over the form it fires. But if mouse is over any control (textbox, listbox
1
4481
by: k.roemke | last post by:
Hello! After a longer time I want to do some javascript again. Task: set content of an iframe to the origin page if the mouse is not moved Problem: <iframe onmousemove="resetCounter();return true;" does not work as expected.
15
2301
hsriat
by: hsriat | last post by:
<body onmousemove="moveMe()"> This function can also be called as document.onmousemove = function {moveMe();}; Similarly what can be done for onmousemove="moveMe(event)" ?
1
3711
by: EddieT | last post by:
Hi, I am planning to override the mouse movement to discrete steps so that i can get a coarser movement of the mouse for easier click of objects. However, I am not getting any trigger in the OnMouseMove event. Anybody know why? My mouse is moving on a Form with a Picturebox on it. protected override void OnMouseMove(MouseEventArgs e) { base.OnMouseMove(e); }
0
8375
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8815
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8707
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8482
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8593
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6161
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4149
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2714
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1916
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.