This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-02-18 19:50:18

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

VB.net Show on MouseEnter?

I need my label control to show when you mouse over it, and hides when MouseLeave. I'm using VB 2010 express.


http://i46.tinypic.com/dw7zft.png

Offline

 

#2 2011-02-18 20:46:37

what-the
Scratcher
Registered: 2009-10-04
Posts: 1000+

Re: VB.net Show on MouseEnter?

Set up a timer which looks for this event. Make variables.

variableX = label.X
variableY = label.Y
variablelength = label.width
variableheight = label.height

variablemousex = mouse.x
variablemousey = mouse.y


if (variablemousey < variableY) AND (variablemousey > variableY- variableheight) AND (variablemousex > variableX) AND ( variablemousex < variablelength + variableX) then

end if

Last edited by what-the (2011-02-18 20:46:57)


http://imageshack.us/m/64/9034/ddfss.pngMy site
Find someone post count. Click posts under username. Find number of pages. Times that by 40 for min and 60 for max and you have a rough estimate of post count.

Offline

 

Board footer