I am converting VB 6 code to VB.Net in VS 2010, Framework 4.
I am unable to find equivalent code in VB.Net for
Error Message: "'Microsoft.VisualBasic.Compatibility.VB6.ListBoxItem' is obsolete".
I tried "ListBox1.Items.Add(New ListItem("Sam",0))" but it is not working though I added
Error Message: "Public Function Format(Expression As Object, [Style As String = ""], [DayOfWeek As Microsoft.VisualBasic.FirstDayOfWeek = FirstDayOfWeek.Sunday], [WeekOfYear As Microsoft.VisualBasic.FirstWeekOfYear = FirstWeekOfYear.Jan1]) As String' is obsolete".
Eagerly waiting for an answer.