I tried adding the code you said but I got the following 2 errors befoe I could even build it.

Code:
Error	1	Overload resolution failed because no accessible 'WriteLine' can be called without a narrowing conversion:
    'Public Shared Sub WriteLine(value As Object, category As String)': Argument matching parameter 'category' narrows from 'Integer' to 'String'.
    'Public Shared Sub WriteLine(message As String, category As String)': Argument matching parameter 'category' narrows from 'Integer' to 'String'.	F:\Documents and Settings\Tommy\My Documents\Visual Studio 2005\Projects\FinalYearProject\FinalYearProject\DataGridPrinter.vb	475	9	FinalYearProject
Code:
Error	2	Overload resolution failed because no accessible 'WriteLine' can be called without a narrowing conversion:
    'Public Shared Sub WriteLine(value As Object, category As String)': Argument matching parameter 'category' narrows from 'Integer' to 'String'.
    'Public Shared Sub WriteLine(message As String, category As String)': Argument matching parameter 'category' narrows from 'Integer' to 'String'.	F:\Documents and Settings\Tommy\My Documents\Visual Studio 2005\Projects\FinalYearProject\FinalYearProject\DataGridPrinter.vb	476	9	FinalYearProject
you also said I have to run it in debug mode, how would I do that?