Enlarge txt Box on mouse over

  • Thread starter oxicottin via AccessMonster.com
  • 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?
 
S

Steve

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
[email protected]
 
M

missinglinq via AccessMonster.com

"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.
 
O

oxicottin 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
 
O

oxicottin via AccessMonster.com

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
[email protected]
"Put the following code in the mouse move off event"
[quoted text clipped - 3 lines]
in
the Detail_MouseMove event.
 
Top