Hi,
I think I might have just uncovered why you are getting the ToList issue. After looking on the Net there seems to be a lot of references to the fact the .ToList method was introduced in VS2008. So the first question for you is what version of Visual Studio are you using? If you are using a version earlier than 2008 then replace the subroutine AddQuestionToDictionary with this one:-
Private Sub AddQuestionToDictionary(ByVal SelectedCatagory As QuizCategories, ByVal NewQuizQuestion As QuizQuestion)
If myQuestions.ContainsKey(SelectedCatagory) Then
myQuestions(SelectedCatagory).Add(NewQuizQuestion)
Else
Dim myNewQuestionCategorylist As New List(Of QuizQuestion)
myNewQuestionCategorylist.Add(NewQuizQuestion)
myQuestions.Add(SelectedCatagory, myNewQuestionCategorylist)
End If
End Sub
In this example you can see I have removed the .ToList method and physically created a new List for each new Quiz Category.
If you are using 2008 or above, then I also found references to the fact that in the .NET 3.5 Framework you need to add the System.Linq namespace to be able to access the ToList method? So try adding "Imports System.Linq" to the class. Guessing and hoping a bit really on that last bit.
Please let us know if that solves this particular issue with the .ToList method.
Cheers,
Ian