I have been redirecting the trace.writeline output to a textbox in most of
my applications. Its works great and helps me resolve issues very quickly
but i find it can decrease the performance of the application dramatically.
Anyone suggest the better way do this? I am aware of log4net etc but
interested in other people suggestions/opinions.
I use a sub like this to make it thread safe
Private Sub objTraceListener_TextChanged(ByVal sText As String) Handles
objTraceListener.TextChanged
If Me.InvokeRequired() Then
Me.BeginInvoke(New UpdateDelegate(AddressOf
objTraceListener_TextChanged), New Object() {sText})
Else
Me.UcTextBoxAdvanced1.AppendText(sText)
End If
End Sub
Anthony