Check out the 'MouseWheel' event in MSDN.
you basically use it like this:
this->panel1->MouseWheel += gcnew
System::Windows::Forms::MouseEventHandler( this,
&Form1::panel1_MouseWheel );
you can also do this in the properties box of the picture box normally. if
you doubleclick the event the designer will automatically generate the event
handler for you.
strangly enough the MouseWheel event does not show up there (in new winforms
project in VC++2005), but you can add it programmatically.
--
Kind regards,
Bruno.
br**********************@hotmail.com
Remove only "_nos_pam"
"tlemcenvisit" <tl**********@discussions.microsoft.com> wrote in message
news:8B**********************************@microsof t.com...
Hi,
I program a windows form application with VC++.NET, I wish to program an
event which occurs when the user uses the mouse wheel in a pictureBox
control. Which event should I use? And how can I program that?
Thanks in advance