Microsoft Forms 20 Object Library Vb6 __exclusive__

Microsoft Forms 2.0 Object Library ) is a legacy component primarily used in VBA but occasionally referenced in Visual Basic 6.0 (VB6) to access enhanced UI features like Unicode support multi-column list boxes Spiceworks Community Core Features of the Library

Dim DataObj As New MSForms.DataObject

For Multi-Column Lists:

Use the standard ListView control included in the Microsoft Windows Common Controls ( MSCOMCTL.OCX ), which allows for highly customizable columns and is freely redistributable. microsoft forms 20 object library vb6

  • Familiar, high-level controls: Developers accustomed to VBA userforms will find the API and event model intuitive.
  • Rich text-related features: TextBox and RichText-related options (e.g., IME support, password masking, multiline with automatic word wrap) work well for typical form inputs.
  • Consistent behavior across Office-hosted userforms and VB6 apps (when FM20 is present).
  • Small footprint: As a single DLL, it’s easy to reference and distribute in many enterprise environments that already have Office installed.
  • Useful additional controls: Controls like the SpinButton, Slider, and MultiPage (if present) add UI patterns VB6 lacks natively.

(Note: The stdole library is required for IFontDisp; it’s automatically referenced when you add the Forms 2.0 library.) Microsoft Forms 2

' Add a page at runtime MultiPage1.Pages.Add "NewPage", "Page 2", 1 (Note: The stdole library is required for IFontDisp;

Have questions or additional tips about using FM20 in VB6? Share your experiences in the comments below!

Despite its power, utilizing the Microsoft Forms 2.0 Object Library in a standalone VB6 application came with significant caveats. In the world of Windows development, dependency management is the Achilles' heel of many projects. Because FM20.DLL was an ActiveX component, developers were required to ensure its presence on the target machine. While this was almost guaranteed on machines with Microsoft Office installed, it was not a standard component of the Windows operating system itself.

Discover more from Specter Pest Control

Subscribe now to keep reading and get access to the full archive.

Continue reading

Call a Specter Pest Management location near you.

Skip to content