Microsoft Forms 20 Object Library Vb6 -
This library provides a specific set of controls that differ from the standard VB6 intrinsic controls. Commonly used objects include: Microsoft Learn MSForms.DataObject : Used for programmatic access to the system clipboard. MSForms.TextBox
Native VB6 controls are strictly ANSI-based. If you pass a Unicode string (e.g., Cyrillic, Chinese, or Arabic characters) to a standard VB6 TextBox , it displays as question marks ( ??? ). FM20 controls are natively Unicode-compliant, allowing proper text rendering for internationalization.
Are you developing this for a , or for external commercial clients ?
A suite of new control icons will appear in your VB6 toolbox, including MSForms.TextBox , MSForms.ComboBox , MSForms.ListBox , MSForms.CommandButton , and more. 3. Key Technical Differences & Code Examples microsoft forms 20 object library vb6
' Add a checkbox to the new page Dim chk As MSForms.CheckBox Set chk = MultiPage1.Pages("Page2").Controls.Add("MSForms.CheckBox.1", "chkEnableLogging", True) chk.Caption = "Enable Logging" chk.Left = 10 chk.Top = 10
The MultiPage control is one of the most popular reasons to use this library. Place a control ( FM20.MultiPage ) onto your form. Right-click the control and select New Page to add tabs.
One of the most useful controls is the MultiPage . Unlike the standard VB6 SSTab (which requires a separate control license), MultiPage is clean, stable, and easy to use. This library provides a specific set of controls
' Add a control Dim btn As MSForms.CommandButton Set btn = myForm.Controls.Add("MSForms.CommandButton") btn.Caption = "Click Me" btn.Left = 100 btn.Top = 80
Populating a multi-column dropdown list natively in VB6 requires heavy Win32 API manipulation. With FM20, it can be handled via simple property assignments and arrays: Use code with caution.
Private Sub CommandButton1_Click() ' Get text from TextBox MsgBox TextBox1.Text ' Set checkbox state CheckBox1.Value = True If you pass a Unicode string (e
: Unlike MSCOMCTL.OCX, you cannot legally copy FM20.dll to C:\Windows\SysWOW64 on a machine without Office and expect it to work. It will fail or violate licensing.
The Risky Allure of Microsoft Forms 2.0 (FM20.DLL) in VB6 If you’ve ever found yourself staring at the standard toolbox and wishing for more "modern" features—like checkboxes in list boxes or native Unicode support—you’ve likely stumbled upon the Microsoft Forms 2.0 Object Library .