
prohibit form designer to call a property on a form
i have the the problem, that the designer sometimes could not load a form
with the message
accessor of property formproperties report - devenv.exe is invalid.
sometimes the problem disappears if i change the implements of the form back
to windows.form compile - ignore the errors - change it back again.
It looks like that the designer calls every property get in the form class.
I am pretty shure that that cannot work with many properties which access
other at designtime not callable classes.
So how can i prohibit designer to call some properties.
wolfgang
' Private omFormProperties As SysProperties = New SysProperties()
'<Browsable(False)> Public ReadOnly Property FormProperties() As
SysProperties
' Get
' If Not omFormProperties Is Nothing Then
' If omFormProperties.SaveAble = False Then
' omFormProperties = New SysProperties(Registry.CurrentUser,
Application.ProductName & "/Forms/" & Me.Name)
' End If
'Else
' omFormProperties = New SysProperties(Registry.CurrentUser,
Application.ProductName & "/Forms/" & Me.Name)
' End If
' Return omFormProperties
' End Get
'End Property