in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Problem with Sizer control

Last post 04-25-2007 4:07 PM by C1_PatrickS. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 04-12-2007 1:23 AM

    Problem with Sizer control

    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

  • 04-25-2007 4:07 PM In reply to

    Re: Problem with Sizer control

    Ramesh,
     
    Please know that there have been no reported cases as mentioned by you. Can you please let me know the version of the C1Sizer that you are using and the version of VS in which you code. I would suggest you to dump this sample and start over again and readd the tools to toolbax again and let me know your observations.
     
    Regards/ Patrick.
    <ramesh_sri123> wrote in message news:193353@test.componentone.com...

    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



    http://home.componentone.com/cs/forums/193353/ShowPost.aspx

Page 1 of 1 (2 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.