ThePentiumGuy Posted June 17, 2003 Posted June 17, 2003 under which event would "mouse scroll" go? i want to check weather the mouse scroll moves up or down Quote My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!) vbprogramming.8k.com My Project (Need VB.NET Programmers) http://workspaces.gotdotnet.com/ResolutionRPG
*Experts* Merrion Posted June 17, 2003 *Experts* Posted June 17, 2003 Hmm - if there isn't an event, checking for wm_mousewheel in the DefWndProc message would do it... Quote Printer Monitor for .NET? - see Merrion Computing Ltd for details
*Gurus* divil Posted June 18, 2003 *Gurus* Posted June 18, 2003 Controls have a MouseWheel event. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
*Experts* DiverDan Posted June 18, 2003 *Experts* Posted June 18, 2003 Sorry Divil, I can't find that event in VB.Net...maybe its in C# only. Quote Member, in good standing, of the elite fraternity of mentally challenged programmers. Dolphins Software
*Gurus* divil Posted June 18, 2003 *Gurus* Posted June 18, 2003 It's there, but for some reason it's hidden. You can look up the signature for it in the object browser or the help and create your own handler method. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
iebidan Posted June 18, 2003 Posted June 18, 2003 I found it too... after MouseUp... maybe in VS.NET 2002 is hidden, but in 2003 is there Quote Fat kids are harder to kidnap
*Experts* DiverDan Posted June 19, 2003 *Experts* Posted June 19, 2003 (edited) You're right divil, its there but very hidden. I wonder why? Could you post a sample of the event handler to give us VS 2002 folks a start. Thanks Dan Edited June 19, 2003 by DiverDan Quote Member, in good standing, of the elite fraternity of mentally challenged programmers. Dolphins Software
*Experts* mutant Posted June 19, 2003 *Experts* Posted June 19, 2003 Im going from memory right now :) but those should be the right arguments: Private Sub Form1_MouseWheel (sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseWheel Quote
*Experts* DiverDan Posted June 19, 2003 *Experts* Posted June 19, 2003 (edited) Okay, Thanks mutant...good memory!! VB.Net 2002 has no help on this event at all! How do I know if the mouse wheel is moving up or down? Thanks Dan btw this site gives out birthdays and ages... ouch for me! Edited June 19, 2003 by DiverDan Quote Member, in good standing, of the elite fraternity of mentally challenged programmers. Dolphins Software
*Gurus* divil Posted June 19, 2003 *Gurus* Posted June 19, 2003 Check out e.Delta that's passed to the handler. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
*Experts* DiverDan Posted June 19, 2003 *Experts* Posted June 19, 2003 Thanks again divil, that worked perfectly! This must have been a last minute addition that MS overlooked documenting. Dan Quote Member, in good standing, of the elite fraternity of mentally challenged programmers. Dolphins Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.