Visual Basic Samples
Start Page
 
We had so many ActiveX control samples, we couldn't fit them all into the VB5 Control Creation Editon download package. This page lists a collection of control creation examples and updated sample code. Be sure to check back on a regular basis for the latest information and code resources.

Analog Clock
The analog clock control demonstrates using transparency in ActiveX controls, and using a URL to dynamically download an image for the clock face.
Download Analog Clock
The Calendar
The ultimate in customizable calendar controls! This control displays a month-at-a-time view. Variable properties include: Day/Month/Year fonts and colors, starting day of week, and enable/disable month and/or year scrolling. The Calendar control also contains a WYSIWYG Property Page to allow for customization of the control at design time.
Download Calendar
ColorBox1
Colorbox1 uses a VB Timer control to draw an animated box in a constantly changing array of colors.
Download ColorBox1
ColorBox2
Colorbox2 takes advantage of Visual Basic 5.0's new support for API callbacks. This version uses a Win32 Timer API callback to animate the color box, instead of the Visual Basic Timer control used in ColorBox1.
Download ColorBox2
Connect4
The classic game implemented as an ActiveX control.
Download Connect4
FlexLabel
Did you ever wish that the text in a textbox would resize automatically when the control was resized? Well, that's what happens in this control. When the control is resized, the font is resized to fill the entire control.
Download FlexLabel
AXGrafix
This control morphs 2 user supplied bitmaps using a variety of transition methods.
Download AXGrafix

 
 
  © 1996 Microsoft Corporation