Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
80
problem with inherited UltraTextEditor
posted

Hi all,

I have the following problem: I created my own control inherited by the UltraTextEditor and just added two right buttons in right with icons and some code in the event handlers. Everything is fine design time, when I place my control in a form I can see my 2 buttons, but when I build and run the application the VS generates in the IntializeComponent() method code that add my buttons again and as result runtime I see 4 buttons instead 2. I’ll appreciate if anybody tell me why this is happened and how to prevent this.

 

Thanks in advance.

 

Parents
  • 37774
    posted

    Where/when are you adding the buttons?  It's sounds like wherever you are doing this is getting called twice, likely by VS's serialization mechanism.

    -Matt 

Reply Children