prohibit form designer to call a property on a form 
Author Message
 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



Tue, 13 Jan 2004 03:32:28 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Windows forms designer automatically adds code that sets properties of custom controls

2. Floating point property bug in form designer

3. How to access Designer form properties

4. Form Designer code / form design window not synched on FlexGrid control

5. VB Form Designer cannot load a form

6. Data Form Designer Form Locks Up VB4

7. Form Designer vs. Add Form

8. Accessing Properties in Calling (Parent) Form ?

9. how to change properties of the main form from a another form

10. Changing form-properties while running before loading the form

11. Setting OCX Property on MDI Child form causes new form to open

12. How to reffer to a form property from another form

 

 
Powered by phpBB® Forum Software