Hi friends,while dragging sizer control from toolbox ,I got this error:
failed to create component c1sizer.The error message follows:
'System.InvalidCastexception:Specified cast is not valid.
at system.windows.forms.design.parentcontroldesigner.getdefaultsize(Icomponent component)
at system.windows.forms.design.parentcontroldesigner.AddCpmtrol(Icomponent newchild,Idictionary defaultvalues)
at system.windows.forms.design.ControlDesigner.Initializenewcomponent(IDictionary defaultvalues)
at system.windows.forms.design.parentcontroldesigner.Initializenewcomponent(IDictionary defaultvalues)
at system.Drawing.Design.Toolbox.Item.CreateComponents(IDesigneerHost host,Idictionary defaultvalues))
at system.windows.forms.design.oledragdrophandler.createtool(toolboxitem tool,controlparent,int32x,int32y,int32 width,int32 height,boolean halocation,boolean hassize,toolboxsnapdragdropeventargs e)
Pls help me.how to solve it.
advanced thanks