Results 1 to 4 of 4

Thread: [2005] Use timer and graphics

  1. #1

    Thread Starter
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    [2005] Use timer and graphics

    Hi All,

    I can use a timer and I can draw a rectangle with the paint event and fill it, but how can I use this timer with graphics.

    Thanks,

    sparrow1
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: [2005] Use timer and graphics

    This is kind of an open ended question. Could you be more specific? What, with graphics, do you need to do?

  3. #3

    Thread Starter
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    Re: [2005] Use timer and graphics

    Quote Originally Posted by Hack
    This is kind of an open ended question. Could you be more specific? What, with graphics, do you need to do?
    Hi Hack,

    I want to use a timer to draw a rectangle and not directly with a button.
    It could also be an ellipse or triangle, the purpose is the same.

    Secondly, I want to change the color of that rectangle after some time set by a timer.

    That's way I made a more general question about using a timer and graphics.

    Thanks,

    sparrow1
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

  4. #4
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: [2005] Use timer and graphics

    You still do the drawing in the paint event handler of the control, and just invalidate or refresh the control on the timer.tick event.

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