DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2004

    About making digital Clock in vb6

    Hi,I want to make digital clock by using vb6. It's easy to draw three hands on the clock by using "Picture1.Line()-()".But my students want to draw these hands more nice-looking so they want to draw these using image tools.That's problem I met how to load the special images because these picturebox with one end fixed and the other end movable. Please give them some guide for it. thank you a lot.

  2. #2
    Join Date
    Aug 2004
    Orange, California
    I found a sample project for rotating an image with anti-aliasing. It is located on Planet Source, here is the link: http://www.Planet-Source-Code.com/vb...11131&lngWId=1
    It should be a good place to start.

  3. #3
    Join Date
    Apr 2007
    Sterling Heights, Michigan
    And we have an example right here on DevX.

  4. #4
    Join Date
    Aug 2004
    Orange, California
    If you read his post again, he is trying to draw hands on his clock, which means he is actually creating an Analog clock rather than a digital clock. So your DevX example, which only prints the time in a label, is not what he is looking for.
    The sample I gave shows you how to rotate an image, like the hands of his clock, but to apply anti-aliasing to smooth out the edges for a better looking result rather than just redrawing the hands at a different angle. This way he can create as fancy a set of hands as he wants.
    He could probably use a good routine to merge the hands with his clock face image. I didn't have an example handy for doing that, but I am sure they are out there and I can find one if he needs it.

Similar Threads

  1. Speaking of strings...
    By Harlow in forum .NET
    Replies: 246
    Last Post: 10-26-2002, 12:30 AM
  2. ANN: Anysoft Releases Digital Cortex 2.0 (Free Eval Download)
    By Anthony Citrano in forum vb.announcements
    Replies: 0
    Last Post: 04-16-2002, 08:25 PM
  3. Replies: 3
    Last Post: 07-21-2001, 02:32 PM
  4. Replies: 24
    Last Post: 02-09-2001, 12:18 PM
  5. Com Interop and VB6 Collections
    By Esmond Hart in forum .NET
    Replies: 2
    Last Post: 01-29-2001, 06:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.