|
-
Jul 27th, 2000, 08:58 AM
#1
Thread Starter
Member
How do you make the text flash in a textbox?
When an event adds text to a box, I'd like for it to flash..... Any easy way to do this?
Vince McMullin
Aka Vam, Vinny Mac
Its just that simple
-
Jul 27th, 2000, 09:07 AM
#2
Frenzied Member
Flash? you mean like blinking?
That's easy, just add a timer with an interval of say, 1 second (1000 milliseconds)
Code:
'In the general declerations put:
Public orgstring as String
'In the sub you want to start the blinking put:
orgstring = Text1.Text
'In the timer event put
If Text1.Text = orgstring Then
Text1.Text = ""
Else
Text1.Text = orgstring
End If
Haven't test it, but it should work
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Jul 27th, 2000, 10:44 AM
#3
Or........
Or you could try this,
it works the same, but it is a little less complicated, since it uses booleans 
Code:
Public strBlink As String
Dim blnEnable As Boolean
Private Sub Command1_Click()
strBlink = Text1.Text
Timer1.Enabled = True
End Sub
Private Sub Timer1_Timer()
blnEnable = Not blnEnable
If blnEnable = True Then
Text1.Text = ""
ElseIf blnEnable = fale Then
Text1.Text = orgstring
End If
End Sub
-
Jul 27th, 2000, 11:12 AM
#4
Thread Starter
Member
difference?
Would it matter if the text is being sent from the module to the textbox after a function is performed?
Vince McMullin
Aka Vam, Vinny Mac
Its just that simple
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|