Hi Efran, Thanks for your reply. I was also getting the same behavior and thinking other types did not matter much. Finally I found the culprit ... At instantiation, the control is setting the Permissions property with the default value (undefined) and there was a logic error when applying them. I corrected the logic error and also added a "if (!this.DesignMode)" condition before calling the helper.
Sébastien On 5/8/07, Efran Cobisi <[EMAIL PROTECTED]> wrote:
Hi SÃ(c)bastien, Since you didn't provide the code for not any of the referenced types, I've assumed it was irrilevant to the issue. However, the class which I came up after removing all of the "extraneous" code doesn't allow me to reproduce the issue... I can see the button! Could you show us some more code? HTH -- Efran Cobisi http://www.cobisi.com SÃ(c)bastien Lorion wrote: > Hello, > > I derived from System.Windows.Forms.Button and added a couple of > properties > and overrided a single method, OnParentChanged, in order to reset one > property. > > For an unknown reason, the control does not render correctly on the form. > The control is there (I can see the dashed outline), but I cannot > interact > with it unless I select it with the help of the control dropdownlist > in the > property toolbar. Even worse, I also cannot see it at runtime ?! > > I tried adding base class attributes to my control, but it changes > nothing. > If I only derive and do nothing else, then it works as expected. I > fail to > see what can cause the problem I am seeing. Anybody could help me there ? =================================== This list is hosted by DevelopMentor(r) http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com
-- Sébastien www.sebastienlorion.com