About making digital Clock in vb6


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: About making digital Clock in vb6

  1. #1
    Join Date
    Sep 2004
    Posts
    96

    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.
    xuliangchu

  2. #2
    Join Date
    Aug 2004
    Location
    Orange, California
    Posts
    1,263
    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
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    And we have an example right here on DevX.
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  4. #4
    Join Date
    Aug 2004
    Location
    Orange, California
    Posts
    1,263
    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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

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