I'm writing my own control that derived from the UserControl.
In my control I have some public properties (with get and set) that I do not
want them to be shown on the designer properties window and I also do not
want the Windows Form Designer to generate code automatically on the user
Form for them.
To block the properties from being shown on the designer properties window I
use:
[System.Componen tModel.Browsabl e(false)]
public int MyProp
{
get { return m_int; }
get { m_int = value; }
}
But I could not find how to prevent the Windows Form Designer from
generating code automatically on the user Form.
Can anybody help me with that?
--------
Thanks
Sharon