ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Textformat with mouse-over in userform (https://www.excelbanter.com/excel-programming/364594-textformat-mouse-over-userform.html)

Gert-Jan

Textformat with mouse-over in userform
 
Textformat in a userform can change on mouse-over in Excel:
email1A.Font.Underline = xlUnderlineStyleSingle underlines the e-mailadress.
But: email1A.Font.Underline = xlUnderlineStyleNone does not bring back the
original format. Any suggestions??



Harald Staff

Textformat with mouse-over in userform
 
Hi

The available controls doesn not have a "mouse_out" / "mouse_leaving" event,
so highlighting with "mouse_over" can get quite complicated. I believe the
common solutions are to either make a timer check wether the mouse is still
there, or call the necessary cleanup code from all the other controls'
mouse_move events.

Otherwise, make sure to put Repaint in code that deals with visual changes
of the form.

HTH. Best wishes Harald

"Gert-Jan" skrev i melding
...
Textformat in a userform can change on mouse-over in Excel:
email1A.Font.Underline = xlUnderlineStyleSingle underlines the

e-mailadress.
But: email1A.Font.Underline = xlUnderlineStyleNone does not bring back the
original format. Any suggestions??






All times are GMT +1. The time now is 01:53 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com