Microsoft Forms 20 - Object Library Vb6

| Control | ProgID | Key props/methods | |---|---:|---| | TextBox | Forms.TextBox.1 | .Text, .SelStart, .SelLength | | Label | Forms.Label.1 | .Caption | | CommandButton | Forms.CommandButton.1 | .Caption, Click | | ListBox | Forms.ListBox.1 | .AddItem, .ListIndex, .List | | ComboBox | Forms.ComboBox.1 | .AddItem, .Style, .ListIndex | | CheckBox | Forms.CheckBox.1 | .Value | | OptionButton | Forms.OptionButton.1 | .Value | | Image | Forms.Image.1 | .Picture | | RefEdit | Forms.RefEdit.1 | .Text |

Although VB6 has its own intrinsic controls (e.g., VB.CommandButton), the Microsoft Forms 2.0 controls offer specific advantages: microsoft forms 20 object library vb6

If you’ve spent any time in the VB6 ecosystem, you know that the built-in controls (the intrinsic ones like TextBox, CommandButton, and Label) are reliable, but... basic. They lack modern styling, have limited event support, and let’s be honest—they look like Windows 98. | Control | ProgID | Key props/methods |

Enter the Microsoft Forms 2.0 Object Library (FM20.dll). Enter the Microsoft Forms 2

While originally designed for Microsoft Office (think VBA UserForms), this library is fully accessible from VB6. It offers a treasure trove of controls that are far more advanced than the standard VB6 toolbox.

In this post, we’ll explore what the library offers, how to reference it, and why you might (or might not) want to use it in your legacy projects.

Or add controls to Toolbox: