Enlarge txt Box on mouse over

  • Thread starter Thread starter oxicottin via AccessMonster.com
  • Start date Start date
O

oxicottin via AccessMonster.com

Hello, I have a text box (txtComments) I would like to enlarge when I mouse
over it and when I move off of it it goes to normal size. Any sugestions?
 
Open your form in design view and select txtComments. Click on the
Properties button in the menu and go to the Format tab. Look at the Top,
Left, Right and Height properties and make note of what they are. Now go to
the Events tab and start a procedure in the MouseOver event. Enter this code
to enlarge the height of txtComments 1/2' and the width of txtComments by
2":
Me!txtComments.Height = Me!txtComments.Height + 720
Me!txtComments.Right = Me!txtComments.Right + 2880

Note: Although these properties are shown in inches in Format Properties,
they are actually stored internally in Twips where 1 Twip = 1/1440".
Therefore 1/2" = 720 Twips and 2" = 2880 Twips.

Put the following code in the mouse move off event:
Me!txtComments.Height = Me!txtComments.Height - 720
Me!txtComments.Right = Me!txtComments.Right - 2880

PC Datasheet
Providing Customers A Resource For Help With Access, Excel And Word
Applications
(e-mail address removed)
 
"Put the following code in the mouse move off event"

No such thing as a "mouse move off event!" To reverse anythig done by using
the MouseMove event of a textbox, etc. you have to place the "reset" code in
the Detail_MouseMove event.

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000

Message posted via AccessMonster.com
 
Doent work! Error..... I put it in the "Mouse move Event" and get an error
and my txt box disapears. what do you mean reset code? Im a newbie here so
please bare with me. Thanks
 
I'm sure the OP knew that!!

PC Datasheet
Providing Customers A Resource For Help With Access, Excel And Word
Applications
(e-mail address removed)
 
Steve what are you talking about "I'm sure the OP knew that!!
"? I just need some help on this issue......Thanks!
I'm sure the OP knew that!!

PC Datasheet
Providing Customers A Resource For Help With Access, Excel And Word
Applications
(e-mail address removed)
"Put the following code in the mouse move off event"
[quoted text clipped - 3 lines]
in
the Detail_MouseMove event.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top