469,926 Members | 1,745 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,926 developers. It's quick & easy.

Show Image when Control has Focus

How can I get an image to appear when a control has the focus in a form?

I would assume expression builder might be useful, but whenever I try to put an expression into an event box, it tries to find the expression as a macro title and fails.

(Also, I see Me comes up a lot in expressions, and wonder if that's why mine don't work... what does it mean??)
Apr 18 '07 #1
3 1542
218 Expert 100+
Hi Stanton

'Me' generally refers to the current form, eg, Me.Visible=True

Let's assume your image is going to appear in an image control - Problem: an image control cannot receive focus!

Otherwise, you will have to use a different type of control (eg, text box) and make the image visible when that control receives focus

Apr 18 '07 #2
280 Expert 100+
What control are you talking about here?

Stuff from Steve should help.

You can use the GotFocus event handler to show your image and LostFocus to hide your image

Your image would be in a picture control
Apr 18 '07 #3
32,232 Expert Mod 16PB
Please remember to provide a meaningful Title for any threads started (Please Use Appropriate Titles for New Threads!). This helps to ensure that other members, and also the general public, will have a better chance of finding answers to any similar questions.

Apr 20 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by itsme | last post: by
7 posts views Thread by Rudy | last post: by
1 post views Thread by elbertlev | last post: by
4 posts views Thread by yatin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.