473,396 Members | 1,996 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,396 software developers and data experts.

Capturing mouse wheel events

Hi, ALL

Does anybody know how to capture mouse wheel events in C# occured on the
control that natively does not suppot them (e.g. MS Flex Grid)? I have code
hooks windows messages in VB6. I've translated it into C#, but it does not
work :-(

Any another idea?

Thanks
Evgueny
Jul 21 '05 #1
2 6522
Firstly porting from VB6 to C# is not so good, a rewerite is better due to
the fast differences in the two languages ... not sure about the mouse
scroll though... *scratches his head and starts googling*
"Evgeny Zoldin" <ez*****@hotmail.com> wrote in message
news:Ot**************@TK2MSFTNGP11.phx.gbl...
Hi, ALL

Does anybody know how to capture mouse wheel events in C# occured on the
control that natively does not suppot them (e.g. MS Flex Grid)? I have code hooks windows messages in VB6. I've translated it into C#, but it does not
work :-(

Any another idea?

Thanks
Evgueny

Jul 21 '05 #2
OK, I found code from MSDN, use it. It hooks WH_MOUSE hook, I could refine
it and hooked WHEEL event only, but I couldn't define the direction and
"amount" of wheel rotation because standard mouse hook returns pointer to
MOUSEHOOKSTRUCT which does not contait that info... :-(

"Mitchell Geere" <mg****@telkomsa.net> wrote in message
news:e8*************@tk2msftngp13.phx.gbl...
Firstly porting from VB6 to C# is not so good, a rewerite is better due to
the fast differences in the two languages ... not sure about the mouse
scroll though... *scratches his head and starts googling*
"Evgeny Zoldin" <ez*****@hotmail.com> wrote in message
news:Ot**************@TK2MSFTNGP11.phx.gbl...
Hi, ALL

Does anybody know how to capture mouse wheel events in C# occured on the
control that natively does not suppot them (e.g. MS Flex Grid)? I have

code
hooks windows messages in VB6. I've translated it into C#, but it does not work :-(

Any another idea?

Thanks
Evgueny


Jul 21 '05 #3

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

Similar topics

3
by: Vikram Bhatia | last post by:
1. Is there an event to capture scrolling using mouse wheel in Netscape 6.x? 2. When arrow keys are used to scroll a page in Netscape 6.x, the scrolling offsets obtained using...
5
by: Bryan Masephol | last post by:
Hi All I got a datagrid and a ComboBox on a form. I populate the combobox with years for all the data avaiable. When the user chooses a year the datagrid is populated with the specific years...
2
by: Evgeny Zoldin | last post by:
Hi, ALL Does anybody know how to capture mouse wheel events in C# occured on the control that natively does not suppot them (e.g. MS Flex Grid)? I have code hooks windows messages in VB6. I've...
2
by: Anders Eriksson | last post by:
Hello! I have a program with three views ------------------------------------ | | | | 1 | 2 | | | ...
0
by: 6tc1 | last post by:
Hi all, I've got a UserControl that contains a few PictureBox objects. If I click on outside of the Picture in the UserControl, the scrolling with the mouse button works - however, no amount of...
13
by: James Bond | last post by:
Hello. My 80+ year old father has recently decided to get his first computer. Due to his age (and I suspect lack of playing pong as a child like I did) he lacks the manual dexterity to use a mouse...
5
by: Nick | last post by:
Hey guys, I have 2 events on a windows forms datagrid, the mouse move as well as the double click events. What's happening is that when I double click on a row in the grid, the mouse move event...
0
by: Gamey | last post by:
I have an application that NEEDS (don't ask) to handle additional mouse and keyboard processing during DoDragDrop. Normally, DoDragDrop kindly squashes all keyboard and mouse events. Alternate,...
14
by: effendi | last post by:
Is it possible for me to disable the wheel scroll in a mouse when user click on a drop-down list? Thanks
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.