I have created a structure as shown below
I have then created a public property within a user control in the hope that I can set the individual values via the property inspector just as I do with the size and location properties. For some reason however, my property (whose name is TitleMargin) is disabled in the property inspector. Does anybody know why this has happened and how I can get around this? I'[ve tried recreating the MarginStruc as a class instead of a structure but its still disabled???
VB.NET:
Public Structure MarginStruc
Public Left As Integer
Public Top As Integer
Public Width As Integer
Public Height As Integer
Public Sub New(ByVal iLeft As Integer, ByVal iWidth As Integer, ByVal iTop As Integer, ByVal iHeight As Integer)
Left = iLeft
Width = iWidth
Height = iHeight
Top = iTop
End Sub
End Structure