Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
MSDN Visual Basic Community
 
 
 
 
 
TitleMake a transparent clock face
Keywordstransparent, clock, face, SetWindowRgn, CreateRectRgn, CombineRgn, region
CategoriesAPI
 
By David Tufts.

Make Windows regions for sections of a bitmap that defines the clock's face. Use CombineRgn to join them. After building the complete clock face, use SetWindowRgn to restrict the program's form to the region.

This example also shows how to let the user click and drag anywhere on the form to move the clock.

 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated