|
|
Flashing Label
Hi,
I would like to make a label flash to remind the user to complete an
action. I know that it’s annoying and that it isn’t good for epilepsy people.
All of that aside I would like to have it flash when the on focus is on a
text box then when its off focus the flashing stops. Can someone please help
me accomplish this. Any help would be appreciative thanks.
--
Message posted via http://www.accessmonster.com
|
|
0
|
|
|
|
Reply
|
Jesse
|
2/24/2010 4:20:34 PM |
|
On Wed, 24 Feb 2010 16:20:34 GMT, Jesse via AccessMonster.com wrote:
> Hi,
> I would like to make a label flash to remind the user to complete an
> action. I know that it�s annoying and that it isn�t good for epilepsy people.
> All of that aside I would like to have it flash when the on focus is on a
> text box then when its off focus the flashing stops. Can someone please help
> me accomplish this. Any help would be appreciative thanks.
Let's say you wish the form's Date control to flash when the FirstName
control is entered.
Set the Form's Timer Interval property to 0
Code the Form's Timer event:
If [DateControl].BackColor = vbWhite Then
[DateControl].BackColor = vbRed
[DateControl].ForeColor = vbYellow
Else
[DateControl].BackColor = vbWhite
[DateControl].ForeColor = vbBlack
End If
Code the [FirstName] control's GotFocus event
Me.TimerInterval = 1000
Form_Timer
Code the LostFocus event of that same [FirstName] control:
Me.TimerInterval = 0
Me.ControlName.BackColor = vbWhite
Me.ControlName.ForeColor = vbBlack
Use very sparingly as it becomes annoying very quickly..
Change the control name and the colors as needed.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
|
|
0
|
|
|
|
Reply
|
fredg
|
2/24/2010 5:15:03 PM
|
|
Jesse
Given that you realize the annoyance and personal health risk, why do you
feel that this is the only way to get the user's attention?
Regards
Jeff Boyce
Microsoft Access MVP
--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.
Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.
You can thank the FTC of the USA for making this disclaimer
possible/necessary.
"Jesse via AccessMonster.com" <u50870@uwe> wrote in message
news:a41e77f59a6ce@uwe...
> Hi,
> I would like to make a label flash to remind the user to complete an
> action. I know that it's annoying and that it isn't good for epilepsy
> people.
> All of that aside I would like to have it flash when the on focus is on a
> text box then when its off focus the flashing stops. Can someone please
> help
> me accomplish this. Any help would be appreciative thanks.
>
> --
> Message posted via http://www.accessmonster.com
>
|
|
0
|
|
|
|
Reply
|
Jeff
|
2/24/2010 5:49:02 PM
|
|
I know this isn’t the only way to get the users attention. All I want it to
do is have a level flash that say Press Enter when they place the focus on a
text box that is for a date. Then when they enter the date and press enter I
want to label to stop flashing and be visible = false. I know there are other
methods I could use but I would like to use this idea.
Jeff Boyce wrote:
>Jesse
>
>Given that you realize the annoyance and personal health risk, why do you
>feel that this is the only way to get the user's attention?
>
>Regards
>
>Jeff Boyce
>Microsoft Access MVP
>
>> Hi,
>> I would like to make a label flash to remind the user to complete an
>[quoted text clipped - 4 lines]
>> help
>> me accomplish this. Any help would be appreciative thanks.
--
Message posted via http://www.accessmonster.com
|
|
0
|
|
|
|
Reply
|
Jesse
|
2/24/2010 7:53:21 PM
|
|
Thanks for the clarification...
Regards
Jeff Boyce
Microsoft Access MVP
--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.
Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.
You can thank the FTC of the USA for making this disclaimer
possible/necessary.
"Jesse via AccessMonster.com" <u50870@uwe> wrote in message
news:a42053868d603@uwe...
>I know this isn't the only way to get the users attention. All I want it to
> do is have a level flash that say Press Enter when they place the focus on
> a
> text box that is for a date. Then when they enter the date and press enter
> I
> want to label to stop flashing and be visible = false. I know there are
> other
> methods I could use but I would like to use this idea.
>
> Jeff Boyce wrote:
>>Jesse
>>
>>Given that you realize the annoyance and personal health risk, why do you
>>feel that this is the only way to get the user's attention?
>>
>>Regards
>>
>>Jeff Boyce
>>Microsoft Access MVP
>>
>>> Hi,
>>> I would like to make a label flash to remind the user to complete
>>> an
>>[quoted text clipped - 4 lines]
>>> help
>>> me accomplish this. Any help would be appreciative thanks.
>
> --
> Message posted via http://www.accessmonster.com
>
|
|
0
|
|
|
|
Reply
|
Jeff
|
2/24/2010 9:41:01 PM
|
|
Fredg - This code will work but I was more interested in making the label
appear and then disappear every half second. I would be grateful with any
insight you have on accomplishing this. Thanks
fredg wrote:
>> Hi,
>> I would like to make a label flash to remind the user to complete an
>> action. I know that itʼs annoying and that it isnʼt good for epilepsy people.
>> All of that aside I would like to have it flash when the on focus is on a
>> text box then when its off focus the flashing stops. Can someone please help
>> me accomplish this. Any help would be appreciative thanks.
>
>Let's say you wish the form's Date control to flash when the FirstName
>control is entered.
>
>Set the Form's Timer Interval property to 0
>
>Code the Form's Timer event:
>If [DateControl].BackColor = vbWhite Then
> [DateControl].BackColor = vbRed
> [DateControl].ForeColor = vbYellow
>Else
> [DateControl].BackColor = vbWhite
> [DateControl].ForeColor = vbBlack
>End If
>
>Code the [FirstName] control's GotFocus event
>
>Me.TimerInterval = 1000
>Form_Timer
>
>Code the LostFocus event of that same [FirstName] control:
>Me.TimerInterval = 0
>Me.ControlName.BackColor = vbWhite
>Me.ControlName.ForeColor = vbBlack
>
>Use very sparingly as it becomes annoying very quickly..
>
>Change the control name and the colors as needed.
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/201002/1
|
|
0
|
|
|
|
Reply
|
Jesse
|
2/25/2010 5:12:09 PM
|
|
On Thu, 25 Feb 2010 17:12:09 GMT, Jesse via AccessMonster.com wrote:
> Fredg - This code will work but I was more interested in making the label
> appear and then disappear every half second. I would be grateful with any
> insight you have on accomplishing this. Thanks
>
> fredg wrote:
>>> Hi,
>>> I would like to make a label flash to remind the user to complete an
>>> action. I know that itʼs annoying and that it isnʼt good for epilepsy people.
>>> All of that aside I would like to have it flash when the on focus is on a
>>> text box then when its off focus the flashing stops. Can someone please help
>>> me accomplish this. Any help would be appreciative thanks.
>>
>>Let's say you wish the form's Date control to flash when the FirstName
>>control is entered.
>>
>>Set the Form's Timer Interval property to 0
>>
>>Code the Form's Timer event:
>>If [DateControl].BackColor = vbWhite Then
>> [DateControl].BackColor = vbRed
>> [DateControl].ForeColor = vbYellow
>>Else
>> [DateControl].BackColor = vbWhite
>> [DateControl].ForeColor = vbBlack
>>End If
>>
>>Code the [FirstName] control's GotFocus event
>>
>>Me.TimerInterval = 1000
>>Form_Timer
>>
>>Code the LostFocus event of that same [FirstName] control:
>>Me.TimerInterval = 0
>>Me.ControlName.BackColor = vbWhite
>>Me.ControlName.ForeColor = vbBlack
>>
>>Use very sparingly as it becomes annoying very quickly..
>>
>>Change the control name and the colors as needed.
You're allowed to experiment.
Simply set the timer interval to 500 (instead of 1000) and change the
name of the control to whatever the label control's name is.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
|
|
0
|
|
|
|
Reply
|
fredg
|
2/25/2010 5:30:43 PM
|
|
I experimented and got it to do what I wanted. Thank you for your help.
fredg wrote:
>> Fredg - This code will work but I was more interested in making the label
>> appear and then disappear every half second. I would be grateful with any
>[quoted text clipped - 34 lines]
>>>
>>>Change the control name and the colors as needed.
>
>You're allowed to experiment.
>Simply set the timer interval to 500 (instead of 1000) and change the
>name of the control to whatever the label control's name is.
>
--
Message posted via http://www.accessmonster.com
|
|
0
|
|
|
|
Reply
|
Jesse
|
2/25/2010 6:07:32 PM
|
|
|
7 Replies
355 Views
(page loaded in 0.194 seconds)
|
|
|
|
|
|
|
|
|