K
Kemo
Hi,
I derived a form (System.Windows.Forms.Form), which has a "BorderPen"
property of type "System.Drawing.Pen". All other forms in my Application are
derived from this one. I have a PenEditorControl, to edit this property
directly in PropertyGrid at the design time, but the problem is - no code is
generated for my property in "<formClassName>.Designer.cs" to set the value.
So I can see the Border in the Designer, as soon as I change the property
value, but because there was no code generated, the border is still
unchanged in the application. And in designer the information will be lost
after reinitiating the designer (or after rebuilding the project).
I was browsing MSDN over 2 hours, and I have several ideas, but I would
highly appriciate if someone could give me an advice.
Thank you!!!
I derived a form (System.Windows.Forms.Form), which has a "BorderPen"
property of type "System.Drawing.Pen". All other forms in my Application are
derived from this one. I have a PenEditorControl, to edit this property
directly in PropertyGrid at the design time, but the problem is - no code is
generated for my property in "<formClassName>.Designer.cs" to set the value.
So I can see the Border in the Designer, as soon as I change the property
value, but because there was no code generated, the border is still
unchanged in the application. And in designer the information will be lost
after reinitiating the designer (or after rebuilding the project).
I was browsing MSDN over 2 hours, and I have several ideas, but I would
highly appriciate if someone could give me an advice.
Thank you!!!