|
-
April 14th, 1999, 03:42 AM
#1
Blinking Line in PictureBox?
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.
-
April 14th, 1999, 05:50 AM
#2
Re: Blinking Line in PictureBox?
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. :-)
-
April 15th, 1999, 04:46 AM
#3
Re: Blinking Line in PictureBox?
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
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
|