Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Image to behave Like a cmd Button

Status
Not open for further replies.

SDS100UK

MIS
Jul 15, 2001
185
GB
Hi,

Acc XP

I have a number of images on a form which look like buttons - but have better images.

Their special effect is raised and to look at them they look very good. The on click code in them works great.

But just 1 small thing i would like to add.

When you click a 'proper' button it appears to be 'pressed' in for a split second then released. I need to replicate this for my 'buttons' as when you click them they remain static (but the code behind them runs).

What i am looking for is the brief 'flash' that comforts the user that the button was clicked.

Any ideas as to how I can achieve this?


TIA


Steven
 
You need to have two image buttons(same size) to do the trick. As simple as that do with html pages.

Infact 3 is better
1 Normal image
2 Hover image
3 Click image
using hide/unhide you can achieve this..
Images on form makes the form heavier!!
hope this helps

Zameer Abdulla
[sub]Jack of Visual Basic Programming, Master in Dining & Sleeping[/sub]
Visit Me
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top