Enlarge text box with mouse over

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?

Thanks,
Chad
 
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?

Thanks,
Chad

You could code the control's MouseMove event:

If (X>=0 and X<=200) And (Y>=0 and Y<=400) then
DoCmd.RunCommand acCmdZoomBox
End If

Change the X and Y values as needed for the size of your control.

This would be very very annoying for any user (well, for me anyway!).
Why not code the control's Double-click event:

DoCmd.RunCommand acCmdZoomBox

This way the control 'enlarges' only when the user wants it to, not
just when they inadvertently pass the cursor over it.
 
I didnt know about the zoombox! I like it way better but on a one click event
not double...Thanks alot!
 
Back
Top