There is a technology challenge on migrating VB6 to VB.NET application. In .NET Framework version 4.0 there are no equivalents so the code needs to be rewritten and controls need to be changed.
As an example, VB6 ListBox and ComboBox controls had the ItemData property. This was a companion list of long integers which could be used to store additional information related to an Item. For example, you could display a list of individuals in a ListBox and keep their age in the ItemData property:
Dim Pos As Integer
Pos = List1.AddItem("Sneezy")
List1.ItemData(Pos) = 44
Pos = List1.AddItem("Grumpy")
List1.ItemData(Pos) = 56
Pos = List1.AddItem("Dopey")
List1.ItemData(Pos) = 22
The .NET ListBox class no longer contains an ItemData property. However, it is no longer necessary since the ListBox class in .NET gives us a more power and control for maintaining the items.