
The Stack for the First error without using the Error Suggestionn:Īt .(Type type, ICollection arguments, String name, Boolean addToContainer)Īt .CodeDomSerializerBase.DeserializeInstance(IDesignerSerializationManager manager, Type type, Object parameters, String name, Boolean addToContainer)Īt .ComponentCodeDomSerializer.DeserializeInstance(IDesignerSerializationManager manager, Type type, Object parameters, String name, Boolean addToContainer)Īt .CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)Īt .CodeDomSerializer.DeserializeStatementToInstance(IDesignerSerializationManager manager, CodeStatement statement)Īt .CodeDomSerializer.Deserialize(IDesignerSerializationManager manager, Object codeObject)Īt .ControlCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, Object codeObject)Īt .TypeCodeDomSerializer.DeserializeName(IDesignerSerializationManager manager, String name, CodeStatementCollection statements)Īt .AddService(Type serviceType, Object serviceInstance, Boolean promote)Īt .AddService(Type serviceType, Object serviceInstance)Īt .AddService(Type serviceType, Object serviceInstance)Īt .ComponentDocumentDesigner.Initialize(IComponent component)Īt .AddToContainerPostProcess(IComponent component, String name, IContainer containerToAddTo)Īt .Add(IComponent component, String name)Īt .CreateComponent(Type componentType, String name)Īt .DesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)Īt .TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)Īt .CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)Īt .(IDesignerSerializationManager serializationManager)Īt .BasicDesignerLoader. The moment I type Inherits Įrror 1 Base class '' specified for class 'myTxtBox' cannot be different from the base class '' of one of its other partial types.
#USERCONTROL AUTOSCALEMODE INHERIT FONT CODE#
If I use the Error Correction Option - same as above I get the same 3 errorsĪny help will be appreciated I do not know what to do.įind below the Code Snippets also the stack messages. I went so far to start a new class, add the usercontrol, delete the class, drag the textbox and errorprovider over and realises the moment one state "Inherits " the error appears even without any other coding done. Me.AutoScaleDimensions = New (6.0!, 13.0!)Įrror 3 'AutoScaleMode' is not a member of 'emTxtBox.myTxtBox'. \ 33 43 myTxtBoxĮrror 2 'AutoScaleDimensions' is not a member of 'emTxtBox.myTxtBox'. I went on to use the Error Correction Option that specifies "Change class 'myTxtBox' to inherits from " but then I get 3 errorsĮrror 1 Value of type 'emTxtBox.myTxtBox' cannot be converted to ''. It seems to be once, caused by the upper levels detecting the parent font changed and scaling all children, and then again by the user control detecting it's parent font change, without the AutoScaleDimensions having been re-set in between.I've tried to create an usercontrol containing a textbox and errorprovider for a program.īut I get the error specified below in red. When I have a different font set in the form or tab page and I create the UserControls for the first time, the lowest levels of UserControl get scaled twice. This all works OK, and changing the object at runtime will result in a new hierarchy being displayed. Mid level configurable object UserControlīottom level configurable object UserControl

Top level configurable object UserControl So I can end up with a UI structure like this: Each object has a method to create the user control which should be used as its configuration editor, so the UI is also a heirarchy of nested user controls (depending on the objects used at runtime). I have an application where the configuration of some objects results in a hierarchy of objects that can be changed at runtime.
