message at the refresh rate.
hi, my friend asked me if i could make a program for him that will blink a message at the refresh rate of the computer, I.E. imperseptabel, he is wondering if he could tech himself vocabulary words with it.
all i want is to display text, nothing fancy like shapes or pictures, but it can't have any flicker (that would be incredibly anoying) any help of with this would be greatly apprecieated, thanks
Re: message at the refresh rate.
Do you mean at the refresh rate of the monitor? eg 85 hertz or whatever?
Re: message at the refresh rate.
Wouldn't you first have to check the refresh rate of the monitor? As far as I know, this changes from monitor to monitor, so that would be your first step.
Re: message at the refresh rate.
yeah, sorry, that is what i ment, but i didn't really explain my self verry well, i just want somthing that works as fast as possable, i don't really care about the refresh rate of the moniter.
P.S. i was woundring, would this appear on the screen? or would it just flip through th code to fast?
VB Code:
lable1.visible = true
lable1.visible = false
when i run it on a computer with an old moniter, i get some flicker.
(the funny thing about this program is that if it is working you won't know it :bigyello: )
Re: message at the refresh rate.
Try this instead:
VB Code:
Private Sub Form_Activate()
AutoRedraw = True
Do
DoEvents
If Label1.Visible = True Then
Label1.Visible = False
Else
Label1.Visible = True
End If
Loop
End Sub
Re: message at the refresh rate.
You need to access some hardware port that gives you a sync signal. You can do it in DirectX
http://msdn.microsoft.com/library/en...efreshrate.asp