L
Lars Netzel
Hi!
A button triggers the code..
I'm trying to learn about the XmlSerializer and when the code comes the try
statement it doesn' throw an exception, it goes into the
MsgBox(string_writer.ToString) and then the application hangs.. I never see
the MessageBox ...
'***************************************************************************
*****
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim myDataset As DataSet
myDataset = GlobalDataSets._codes
Dim xml_serializer As XmlSerializer
Dim string_writer As New StringWriter
' Create the XmlSerializer.
xml_serializer = New XmlSerializer(GetType(System.Data.DataSet))
' Make the serialization, writing it into the StringWriter.
xml_serializer.Serialize(string_writer, myDataset)
' Display the results.
Try
MsgBox(string_writer.ToString)
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
'***************************************************************************
******
Pease help/
Lars
A button triggers the code..
I'm trying to learn about the XmlSerializer and when the code comes the try
statement it doesn' throw an exception, it goes into the
MsgBox(string_writer.ToString) and then the application hangs.. I never see
the MessageBox ...
'***************************************************************************
*****
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim myDataset As DataSet
myDataset = GlobalDataSets._codes
Dim xml_serializer As XmlSerializer
Dim string_writer As New StringWriter
' Create the XmlSerializer.
xml_serializer = New XmlSerializer(GetType(System.Data.DataSet))
' Make the serialization, writing it into the StringWriter.
xml_serializer.Serialize(string_writer, myDataset)
' Display the results.
Try
MsgBox(string_writer.ToString)
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
'***************************************************************************
******
Pease help/
Lars