• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk Topobase

    Reply
    New Member
    Posts: 1
    Registered: ‎09-30-2009

    The user api control error

    114 Views, 2 Replies
    09-30-2009 09:55 PM
    Hi, I just start to learn about api control. When I try to add an api control, I got the error:
    "topobase" unable to cast object of type 'xxxxxx' to type 'System.Windows.Forms.Control'.

    Could anyone tell me the reason? Thanks in advance.
    Please use plain text.
    Member
    Posts: 3
    Registered: ‎11-06-2009

    Re: The user api control error

    11-06-2009 06:28 AM in reply to: hu.brett
    Hi hu,brett

    Did you ever figure out what the problem was?

    I would post more details if you haven't, like how you added the api control.
    Please use plain text.
    Active Member
    Posts: 8
    Registered: ‎07-27-2009

    Re: The user api control error

    11-12-2009 07:31 AM in reply to: hu.brett
    how did you add an API control? I agree with D, you should post more details if you haven't found a solution.
    Did you cast your control type?
    i.e: _BtnMyNewButton = this.Dialog.Controls.ApiItem("$THEAPIBUTTONNAME") as Topobase.Forms.Button;
    Please use plain text.