Autodesk Topobase
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
The user api control error
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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.
"topobase" unable to cast object of type 'xxxxxx' to type 'System.Windows.Forms.Control'.
Could anyone tell me the reason? Thanks in advance.
Re: The user api control error
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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.
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.
Re: The user api control error
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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;
Did you cast your control type?
i.e: _BtnMyNewButton = this.Dialog.Controls.ApiItem("$THEAPIBUTTONNAME") as Topobase.Forms.Button;
