>George,
> can you show me the sample code ? The image control is an Ms ActiveX control ?
>
>regard,
Hi chang,
It's just the standard image control, it's not ActiveX. Let's assume that you've got a "hot" image (one to appear when the mouse is over the image) named hot.bmp, a "cool" image (one for when the mouse isn't over it) named cool.bmp, and a disable image named disabled.bmp. For purposes of the code, we'll call the Image contol myImage
This.Picture = "hot.bmp"
IF ThisForm.myImage.Enabled
ThisForm.myImage.Picture = "cool.bmp"
ELSE
ThisForm.myImage.Picture = "disabled.bmp"
ENDIF
Whenever the enabled status changes, call the form's MouseMove event to update the picture.
hth,
George
Ubi caritas et amor, deus ibi est