Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Change a button image/picture box image when mouse enter

Posted on 2004-10-24
2
Medium Priority
?
536 Views
Last Modified: 2007-12-19
Dear EE,

I want to created my own buttons for my applications,
and I want it when I mouseEnter in a image, it will change to another image...
How can I do that?

I tried this but it fails :(

 Private Sub picBtnFTP_MouseEnter(ByVal sender As Object, ByVal e As System.EventArgs) Handles picBtnFTP.MouseEnter

        Dim pPath As String
        pPath = AppPath() & "\1.jpg"
        Me.picBtnFTP.Image.FromFile(pPath)


    End Sub


How can I change that?
If possible easier than I can just change the opacity instead of another image, can save more resources...
Thanks you
0
Comment
Question by:joely2k
2 Comments
 
LVL 86

Accepted Solution

by:
Mike Tomlinson earned 150 total points
ID: 12393680
Something like this will work:

    Private Sub picBtnFTP_MouseEnter(ByVal sender As Object, ByVal e As System.EventArgs) Handles picBtnFTP.MouseEnter

        Dim pPath As String
        pPath = Application.StartupPath & "\1.jpg"
        picBtnFTP.Image = Image.FromFile(pPath)

    End Sub

~IM
0
 

Author Comment

by:joely2k
ID: 12429994
Thanks Idle Mind for your help.....
Appreciated..
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Integration Management Part 2
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question