How to prevent "internal" controls from being used externally?

  • Thread starter news.microsoft.com
  • Start date
N

news.microsoft.com

Hi,

I am writing some composite controls for a mobile device. Starting off with
a usercontrol, I then embed child control on it which will then be consumed
by other. The child controls are also custom and intended only for use on
the usercontrol (meaning I never want the user to explicitly add the child
controls to any of their forms).

What are some of the ways that I can prevent the user from using it on their
forms? On specific thing that I am looking at is preventing it from
appearing in the toolbox, but in the .xmta file, the ToolboxItem element is
not supported in the schema, which is what I beleive the full framework uses
for this purpose.

Any suggestions?
 
D

dbgrick

Why not add the code directly to your application and then mark the control
classes to internal?

Regards,
Rick D.
Contractor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top