<Serializable()> Public Structure Person
Dim Name As String
Dim Age As Integer
Dim Income As Decimal
Now, create an instance of this structure and populate it.
Write it to your file:
P = New Person()
P.Name = "Joe Doe"
P.Age = 35
P.Income = 28500
FS = New System.IO.FileStream _
Dim obj As Object
Dim P As Person()
obj = BinFormatter.Deserialize(FS)
If obj.GetType Is GetType(Person) Then
P = CType(obj, Person)
' Process the P objext
Loop While FS.Position < FS.Length - 1
The object P object will now contain the Person object you serialized previously.
I Developed application in C# with crystal reports and created setup file in third party (Advance) Installer.When i installed my application on client system application is working but ...