status box text flash

Briandr

Registered User.
Local time
Today, 09:43
Joined
Jan 8, 2003
Messages
18
Hi All,

I am looking for a small code example as I wouldn't be able to code it.

I'd like to use the control 'On Got Focus' and have the text flash only while the text box has the focus. After the focus is lost then I wouldn't need it. I now flashing text can be considered annoying, but I was asked to check into this to see if it could be done.

Thanks.
 
As a control has a got focus and lost focus event it MAY be possible to set up a timer.you will need to experiment. Although I certainly would not set any control to flash.
 
You can't flash it while it has the focus, because it can't be set to invisible when the control has the focus. But, to do the flashing you would set the code in the form's timer to do the flashing like this:

Me.YourTextBoxName.Visible = Not Me.YourTextBoxName.Visible

set the timer interval to something like 2000 (for 2 seconds)


And in whatever event you want it activated on put:
Me.Timer.Enabled = True

and wherever you want it disabled put
Me.Timer.Enabled = False
Me.YourTextBoxName.Visible = True (do that in case it's visible property was set to false when you disabled the timer)
 
Hi Bob,

What I would like is the text box to be visible at all times. This line of code causes the text box to flash:

Me.YourTextBoxName.Visible = Not Me.YourTextBoxName.Visible

The other thing is I want the status bar text to flash, not the text box itself to flash.

I think I understand your example, but then again I may not since I am not too good with programming. Thanks.
 

Users who are viewing this thread

Back
Top Bottom