Community
Topobase (Read Only)
Welcome to Autodesk’s Topobase Forums. Share your knowledge, ask questions, and explore popular Topobase topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

The user api control error

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
596 Views, 2 Replies

The user api control error

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.
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

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.
Message 3 of 3
Anonymous
in reply to: Anonymous

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;

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report