Removing User Created Control Properties

G

Guest

Thank you Alex for your assistance on my previous post. I've tried the same
solution for this problem but it's not working...

I've created a user control in the VS2003 1.1 framework and I'd like to
hide the read only properties I've created on the control in the designer.

I've tried the following to no avail:

#if NETCFDESIGNTIME
//fix me-not sure if this is right, the user cant set them so they shouldnt
see them in the designer
//[Browsable(false), EditorBrowsable(EditorBrowsableState.Never),
DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[Browsable(false),
DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public override float DetectMaxValue
//tried having both, not having both, 1 other, no avail
get {return base.DetectMaxValue;}
//set {base.DetectMaxValue = value;}
#endif

//my property
public float DetectMaxValue
{
get
{
return m_detectMaxValue;
}
// set
// {
// m_detectMaxValue=value;
// this.Invalidate();
// }
}

Any help?
 
G

Guest

Disregard, I'm a moron....
#if NETCFDESIGNTIME
[Browsable(false)]
#endif
public float DetectMaxValue
{
get
{
return m_detectMaxValue;
}
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top