DECLARE SHORT GetKeyState IN WIN32API INTEGER >#DEFINE VK_XBUTTON1 5 >#DEFINE VK_XBUTTON2 6 >IF GetKeyState( VK_XBUTTON1 ) < 0 > DEBUGOUT "X1", PROGRAM(), TIME() >ENDIF >IF GetKeyState( VK_XBUTTON2 ) < 0 > DEBUGOUT "X2", PROGRAM(), TIME() >ENDIF >>>I'm using VFP8SP1 in Windows2000Pro. I have a Microsoft IntelliMouse that has the standard two buttons and a mouse wheel. In addition, there are two extra buttons on either side of the mouse. In Internet Explorer, they default to "Back" and "Forward" navigation.