Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can the Forms Collection be upgraded?

collection forms upgraded
0
Posted

How can the Forms Collection be upgraded?

0

The Forms collection cannot be automatically upgraded with the upgrade wizard because Visual Basic .NET does not support the Forms collection. The Forms collection in Visual Basic 6.0 is a collection of all loaded forms in the project. The most common uses of the Forms collection are to determine whether a form is loaded, to iterate through the loaded forms, and to unload a form by name. Visual Basic .NET provides similar functionality and you can create a module and class masking the functionality However, please note that in Visual Basic 2005, the Forms collection is implemented in the My.Application.OpenForms class. This will make it possible for an automatic upgrade to be performed, with no need to create wrapper classes or modules with global members. Upgraded Forms collection code will look very similar to the original code.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123