VB.net - Mousehover not sensitive -


i made picturebox change if mover on image takes long. can me please? here's code:

private sub button2_mousehover(sender object, e eventargs) handles button2.mousehover         button1.visible = true         button2.visible = false     end sub      private sub button1_mouseleave(sender object, e eventargs) handles button1.mouseleave         button1.visible = false         button2.visible = true     end sub 

thanking in advance

if want adjust time mouse must pause on image, docs say;

a typical use of mousehover display tool tip when mouse pauses on control within specified area around control (the "hover rectangle"). pause required event raised specified in milliseconds mousehovertime property.

to achieve that, change value of systeminformation.mousehovertime in code.

alternatively, has commented, use mouseenter event instead, trigger instantly.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -