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 Controls Collection be upgraded?

collection controls upgraded
0
Posted

How can the Controls Collection be upgraded?

0

To add and remove controls at run time, Visual Basic 6.0 provides the Controls Collection. One of the major disadvantages of this model is that the it does not support Microsoft IntelliSense® technology. You have to remember the methods, parameters, and ProgID of the control to add. The upgrade wizard does not automatically upgrade Visual Basic 6.0 code using the Controls collection Add method because of changes in the behavior of Add between Visual Basic 6.0 and Visual Basic .NET. It is relatively easy to add and remove intrinsic controls in Visual Basic .NET. In Windows Forms, the form model used in Visual Basic .NET, controls are indexed by number instead of name. To remove a control by name, you have to iterate through the Me.Controls collection, find the desired control, and remove it. In the Visual Basic 2005, the Controls collection provides methods that allow removing controls in the same manner as Visual Basic 6.0, so you will not have to iterate through the Controls collectio

Related Questions

What is your question?

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

Experts123