PRB: Public Property of a Class Module Can't Be Set to True

ID: Q149529


The information in this article applies to:
  • Microsoft Visual Basic Professional and Enterprise Editions, 16-bit only, for Windows, version 4.0
  • Microsoft Windows for Workgroups version 3.11


SYMPTOMS

After installing Visual Basic version 4.0 over a previously installed Visual Basic version 3.0, the Public property of a class module cannot be set to True. When you attempt to set the Public property of a Class module to True, the following error message appears:

The Public property for Class Class1 cannot be set to True. You do not have an appropriate license to use this.


CAUSE

There are two possible causes for this problem:

  • The registry contains some entries for version 3.0 that the version 4.0 setup program did not remove.


  • -or-

  • The registry file, Reg.dat, is over 64K. The version 4.0 entries may be ignored.



RESOLUTION

Exit from Windows for Workgroups; from the MS-DOS prompt, find the Reg.dat file and rename the file to Reg.old. Start Windows for Workgroups and reinstall Visual Basic to rebuild the registry. For instructions on how to rebuild the registry and re-registering .reg files, please see the following article(s) in the Microsoft Knowledge Base:

Q80393 How to Rebuild the Default Windows REG.DAT File
Q82814 Re-Registering .REG Files
You may have to install other applications to rebuild their registry settings as well.

Additional query words:

Keywords : kbVBp400
Version : WINDOWS:3.11,4.0
Platform : WINDOWS
Issue type :


Last Reviewed: January 19, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.