[VB][Help]Hover Button - Launcher
On my Game Launcher, I want to make a hover button. Like if you move your mouse over it, the button will change someway. This is a VB (Visual Basic Source File), and I use Microsoft Visual Basic 2005 Express Edition. I know there's a way, but could someone let me know the code to add/modify/etc. Thanks for the help.
Button I Want To Modify: http://img206.imageshack.us/img206/8443/59362930jq8.jpg
VB Code (Button - Action When Clicked): http://img412.imageshack.us/img412/4289/79058852dg8.jpg
VB Code (Button - Resources; Image/Location of the Button): http://img412.imageshack.us/img412/5762/92909218nk5.jpg
Thanks again.
~ xKurasHx
Re: [VB][Help]Hover Button - Launcher
Re: [VB][Help]Hover Button - Launcher
Okay. Thanks, but it's not letting me open the files in any way, or am I supposed to do something else with it :P?
Re: [VB][Help]Hover Button - Launcher
If you want it to change while the mouse is over it, use a MouseEnter event, and for it to change back once the mouse leaves, use a MouseLeave event.
Re: [VB][Help]Hover Button - Launcher
Okay. That part is done - with no errors. Now what code, or thing, do I do so the MouseEnter will load the 2nd image?
Here's what I've done so far: http://img187.imageshack.us/img187/6793/94513254jw9.jpg
*Sorry for this "noobish-ness." I have no clue on what to do on Hover Buttons in VB, but everything else is fine.
Re: [VB][Help]Hover Button - Launcher
If you're wanting to change the image, use this:
PictureBox1.Image = Image.GetFromFile("imagenamehere.bmp")
I'm pretty sure the method is GetFromFile, and if it's not then you should be able to find it anyway.
Re: [VB][Help]Hover Button - Launcher
Thanks. It works. :)
But it's PictureBox1.Image = Image.FromFile("File Directory e.g. C:\picture.bmp")
With Visual Basic 2005 Express Edition.
<Different Topic>
Mouse cursors. It worked changing them, but it goes all black instead of the blue it has.
Image: http://img168.imageshack.us/img168/6473/cursors1kg6.jpg
*Can only show the original cursors. The black one won't show on a screenshot.