Click to See Complete Forum and Search --> : Blinking Line in PictureBox?


Felix
April 14th, 1999, 03:42 AM
Does anyone knows, how to make a line in a PictureBox blinking? Is there a color like in DOS-Mode to get it blinking. I don't want to use a timer, because of performance issuses.
Thanks for your help.

Lothar Haensler
April 14th, 1999, 05:50 AM
need a blinking line without a Timer?

Place a WebBrowser Control on your form, specify an HTML file with an animated GIF. Let the GIF do the blinking.
This probably the most stupid way to implement a blinking line without a timer. :-)

Ravi Kiran
April 15th, 1999, 04:46 AM
Hi,

You can do it in quite a few ways. Depends on what exactly you want?

You can draw in Xor mode in a loop, so that it will erase and draw on consequitive loops.
But then this may be too fast and you need to use a counter, so that it does only occasionally, and since your application is not just blinking line alone, ( you probably need to be doing something else also :-) ), you need to give up control so that other parts can run..blah, blah, blah,, in essence you will be implementing a timer!!!.

My advise : Use one.!!

Still better : Create a user control that does the blinking line. since active-x controls run on seperate threads, it may be not be so much of a performance issue!

Ravi