Topobase

Reply
New Member
hu.brett
Posts: 1
Registered: ‎09-30-2009
Message 1 of 3 (182 Views)

The user api control error

182 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.
Member
Dev475
Posts: 3
Registered: ‎11-06-2009
Message 2 of 3 (182 Views)

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.
Active Member
HyVong
Posts: 8
Registered: ‎07-27-2009
Message 3 of 3 (182 Views)

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;
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.