G
Gillard
i get an exeption and i do not know what else to do to continue
Dim sdf As New SaveFileDialog
With sdf
.AddExtension = True
.DefaultExt = ".record"
.FileName = Now.ToLongDateString
.Filter = "recorder (*.record)|*.record"
End With
If sdf.ShowDialog = Windows.Forms.DialogResult.OK Then
Dim Serializer As New
Runtime.Serialization.Formatters.Binary.BinaryFormatter
Dim DataFile As New FileStream(sdf.FileName,
FileMode.Create, FileAccess.Write, FileShare.None)
Serializer.Serialize(DataFile, eventsi)
DataFile.Close()
' Data = Nothing
End If
exeption message :
type 'System.Windows.Forms.MouseEventArgs' in assembly
'System.Windows.Forms, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089' not serializable
Dim sdf As New SaveFileDialog
With sdf
.AddExtension = True
.DefaultExt = ".record"
.FileName = Now.ToLongDateString
.Filter = "recorder (*.record)|*.record"
End With
If sdf.ShowDialog = Windows.Forms.DialogResult.OK Then
Dim Serializer As New
Runtime.Serialization.Formatters.Binary.BinaryFormatter
Dim DataFile As New FileStream(sdf.FileName,
FileMode.Create, FileAccess.Write, FileShare.None)
Serializer.Serialize(DataFile, eventsi)
DataFile.Close()
' Data = Nothing
End If
exeption message :
type 'System.Windows.Forms.MouseEventArgs' in assembly
'System.Windows.Forms, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089' not serializable