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

  • Thread starter Thread starter news.microsoft.com
  • Start date 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?
 
Why not add the code directly to your application and then mark the control
classes to internal?

Regards,
Rick D.
Contractor
 
Back
Top