I beleive that for Structs of the same type, you can just to a striaght compare. I.E., IF (structA = strucB) then ...
Nope, my bad. I was thinking of VB6...
Oh wait, there's another way to do it in .NET: using the .Equals method.
Public Class TestVBClass
Structure pnt
Dim X As Single
Dim Y As Single
Dim Name As String
End Structure
Function CompareStructs() As Boolean
Dim a As pnt, b As pnt
With a
.X = 3.3
.Y = 1.1
.Name = "first"
End With
With b
.X = 13.3
.Y = 11.1
.Name = "second"
End With
MsgBox("Test1 = " & (a.Equals(b)), MsgBoxStyle.OkOnly)
With b
.X = 3.3
.Y = 1.1
.Name = "first"
End With
MsgBox("Test2 = " & (a.Equals(b)), MsgBoxStyle.OkOnly)
End Function
End Class