i have got a public property which should not be set in the ...Designer.cs. Is there any workaround available to prevent the property from Designer serialization
It hide the Property from Designer ,,,meanse in VS you will not see the value but from code you can see it ...so I dont think there is a VS for ComPact .NET FW. So you can still use it
DesignerSerializationVisibilityAttribute - Workaround
Liu Feng
thx
jdrawmer
the Browsable Attribute is not a member of the System.ComponentModel in the .net Compact Framework. Have you got another idea
thanks anyway
Ido Ran
Hi
Add an attribute to that property to hide from VSDesigner. So when the Designer dosent see it it will be unable to set the Value.
[System.ComponentModel.Browsable(
false)]public string YourProp
{
get;
set;
}
ares_l
I inserted the Attribute
[System.ComponentModel.Browsable(false)]
public XactListItems XItems
{
get
{
return this.iaListItems;
}
set
{
this.iaListItems = value;
}
}
but i got the following error:
Der Typ- oder Namespacename Browsable ist im Namespace System.ComponentModel nicht vorhanden. (Fehlt ein Assemblyverweis )
I think something like:
The Type or Namespace Browsable is not a member of System.ComponentModel ...
So i can't use it or i did something wrong.
howiesfunware
CECOOK
Hi
use this
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
It will allow the advanced users to edit the value, and don't do any thing with security on this property. so no one will be able to change it