vb.net - Mousewheel Event -
i have got form vertical scroll bar
, want utilize mouse wheel scroll , downwards form cant seem acquire mousewheel event
fire.
i utilize standard mousewheel
event
private sub frmtest_mousewheel(byval sender object, byval e system.windows.forms.mouseeventargs) handles me.mousewheel 'code here end sub
any help appreciated.
try place 1 panel
in form
set autoscroll = true
, dock = fill
, panel
place command textbox
, label
, listview
etc..
private sub panel1_mouseenter(sender system.object, e system.eventargs) handles panel1.mouseenter panel1.focus() end sub private sub panel1_mousewheel(sender object, e system.windows.forms.mouseeventargs) handles panel1.mousewheel messagebox.show("okay") end sub
vb.net winforms mouseevent
No comments:
Post a Comment