G
Guest
Hi,
I have a custom menu form that I have labels as choices for uses. I have
created a public routine that changes the color of the text to yellow when
the user moves the mouse over a particular label.
In order to put the label back to white font color I put a for each
statement in the Detail section MouseMove event. I'm concerned that this
fires multiple times has the user moves the mouse around the screen. Is
there a better way? Will this cause a memory problem?
Here's my for each statement
For Each ctl In Me.Controls
If ctl.ControlType = acLabel Then
If ctl.ForeColor = 10092543 Then
'ctl.Properties("BorderStyle").Value = 0
ctl.ForeColor = vbWhite
End If
End If
Next ctl
Thanks
LeAnn
I have a custom menu form that I have labels as choices for uses. I have
created a public routine that changes the color of the text to yellow when
the user moves the mouse over a particular label.
In order to put the label back to white font color I put a for each
statement in the Detail section MouseMove event. I'm concerned that this
fires multiple times has the user moves the mouse around the screen. Is
there a better way? Will this cause a memory problem?
Here's my for each statement
For Each ctl In Me.Controls
If ctl.ControlType = acLabel Then
If ctl.ForeColor = 10092543 Then
'ctl.Properties("BorderStyle").Value = 0
ctl.ForeColor = vbWhite
End If
End If
Next ctl
Thanks
LeAnn