.net - WinForm Inheritance designer settings are copied to derived form -


I am experiencing some troublesome behavior with Visual Studio .NET 2008.

We have created a base form, and the base grid from Infrastructics Ultrigrid

In the base form, we have set some properties such as color, font size, etc. 1. We create a new Windows form (i.e. DerivedForm) 2. We use the BasFment to add the statement while using the bus Changes the baseform by changing the heritage in class definition. 3. IDE at this point, you will copy Property Property.designer.cs to see DerivedForm.designer.cs to view all property settings. 4. Now if we make changes to a baseform property, then it is overridden by the current settings, which has been copied in step 3. Therefore, we do not see a new change in the form of a child.

The example that is being copied comes from the baseform. InitializeControls () is similar to the following, which I found in the InitializeControls () of the derived form class:

  Enter the code here // // BaseForm_Fill_Panel // this.BaseForm_Fill_Panel Location = new system Drawing Points (0, 47); This.BaseForm_Fill_Panel.Size = New system. Drawing Size (1095, 505);  

Is there any way to stop the child form by copying property to the IDE?

Just my 2 seats ... when I change the color of my base classes, fonts, shapes and so on To maintain the same consistency in my baseclass definition, I overridden to read properties-only Therefore, when the original form is created and contains all the extra garbage / bloat in it, when you compile it for the first time, it will only be concerned about a value to read and you need to strip the rows saying Will be. Then, any subsequent changes in any class (including read-only fonts), all forms, text boxes, labels, buttons etc. will reflect them. This type of override must be read ...

  [read only (true)] Public override color prediction ({return color.blue;}} [Readline (true) }] Public override font font {get new font (GDITFontBaseName, GDITFontBaseSize, FontStyle.Regular, GraphicsUnit.Point);}}  

I do not know that this is exactly what you actually accomplished , But in my content, works great.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -