In this case I have a point (HexLocation) which I want to get/set as property for my class.
VB.NET Code:
  1. Private HexLocation As Point
  2.  
  3.     Public Property Location As Point
  4.         Get
  5.             Return HexLocation
  6.         End Get
  7.         Set(HexLocation As Point)
  8.         End Set
  9.     End Property
Then this works just fine afterwards:
VB.NET Code:
  1. Hexagon1.Location = New Point(0, 0)
The problem comes when trying to modify only one of those two values, for example:
VB.NET Code:
  1. Hexagon1.Location.X = 33
"This expression is a value and cannot be the target of an assignation."
So I then tried nesting properties but created a demon:
Name:  Nesting.PNG
Views: 456
Size:  8.1 KB
This didn't work either:
Name:  Nesting2.PNG
Views: 399
Size:  8.3 KB
I can't simply have it as a public variable because I need to execute code when it is modified but not enough for it to require a method, I think, so I'm lost.