I have created a "user control". According to the documentation I found you
need to add:
[ToolboxItem("System.Windows.Forms.design.AutoSizeToolBoxItem,System.Design"
)]
class MyControl : UserControl
{
....
}
Now, I would think this wouldn't be executed at run time but at design time.
Tim Wilson said:
Are you referring to programmatically (through code) adding CF controls to
the toolbox or manually by right-clicking on the toolbox, bringing up the
dialog, etc.?
--
Tim Wilson
..NET Compact Framework MVP
RFlaugher said:
When I apply [TooBoxItem(...)] or any variant the compiler tells me
that
no
such object exists. I have no problem with non CF projects.
:
Yes. The control will only show up for the proper project type,
however.
So
if the control was compiled against CF 1.0 then, once added, it wouldn't
appear in the toolbox for a project that was targeting CF 2.0. Or, the
control should be added to the toolbox automatically (for the local solution
only) if the control is defined within the loaded solution. What are you
having problems with in particular?
--
Tim Wilson
..NET Compact Framework MVP
Is it possible to add custom user controls to the VS 2005 toolbox
in
CF
2.0
as you can with the full .net version? It doesn't appear so and I
am
not
sure why. I only thought this affected design time behavior not
run
time.