Ive been working in Java a ton lately, seems my mind is slipping here..
vb Code:
Public Class menu
Dim mFont As Font
Dim mMenu As String
Public ReadOnly Property getFont() As Font
Get
Return mFont
End Get
End Property
Public WriteOnly Property setFont(ByVal fontName As String) As String
Set(ByVal value As String)
mFont = New Font(fontName, 12, FontStyle.Regular)
End Set
End Property
Public ReadOnly Property getMenu() As String
Get
Return mMenu
End Get
End Property
Public WriteOnly Property setMenu(ByVal menuText As String) As String
Set(ByVal value As String)
mMenu = menuText
End Set
End Property
End Class
In my program I try to set the menuText: