Custom buttons in access 2003 (1 Viewer)

ttomw

Registered User.
Local time
Yesterday, 22:37
Joined
Apr 13, 2012
Messages
26
I am trying to make some custom buttons using image controls on a form.

I simply want the image to change on events such as mouse down etc.

Here is the code I am using in the event property for On Mouse Down:

Private Sub GreenButton_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
GreenButton.Picture = "D:\Projects\Images\GreenButtonHover.bmp"
End Sub

When I execute this (IE. open form view and press button) it does change the image as expected, but it also makes the whole form flash like it is reloading the form. Is there a better way to do this in access 2003. Also, is there a way to embed the button images so they don't have to be referenced to the local harddrive?

Also, If I am using Access 2010 is there a way to force the software into emulating/limiting itself to 2003 capabilities. I have to develop this project to be completely 2003 compatible.

Thanks, Tom
 

Users who are viewing this thread

Top Bottom