CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Posts
    10

    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.


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    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. :-)


  3. #3
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    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
  •  





Click Here to Expand Forum to Full Width

Featured