Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / January 2008

Tip: Looking for answers? Try searching our database.

Change a picture when clicked

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paul - 08 Jan 2008 19:08 GMT
I have two versions of a picture (.png files), one 'greyed out' and one in
full color. I want to display the greyed out version and then if somone
clicks on it I want it to change to the color version and vise versa.

I'd also like to assign a yes/no or 0/1 value to it so I can report on it.

Any suggestions? Thanks!
Arvin Meyer [MVP] - 09 Jan 2008 04:33 GMT
Sub MyImage_Click()

   If MyImage.Picture = "C:\Path to grayed picture.png" Then
       MyImage.Picture = "C:\Path to color picture.png"
   Else
       MyImage.Picture = "C:\Path to grayed picture.png"
   End If
End Sub
Signature

Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com

>I have two versions of a picture (.png files), one 'greyed out' and one in
> full color. I want to display the greyed out version and then if somone
[quoted text clipped - 3 lines]
>
> Any suggestions? Thanks!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.