473,385 Members | 1,546 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,385 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
Nov 15 '05 #1
2 7494
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

Nov 15 '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


Nov 15 '05 #3

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

Similar topics

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...
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: 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...
2
by: ingmar | last post by:
Hi, how do I register my Mouse wheel handler in my main VB .net 2005 form? My function Private Sub Me_MouseWheel(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs)...
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
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...
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...

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.