<victor>,
I don't know if you can do it from the designer. I really doubt it. I don't
see how a control can be a static.
You can create many instances of a form. Each control has underlaying native
windows, which can have only one parent.
I don't see how you can share a control between forms.
Even if you say that you are going to guarantee only one istance (singleton)
the windows forms designer is not meant to create singleton forms.
--
Stoitcho Goutsev (100)
<victor> wrote in message news:56********************************@4ax.com...
Hi,
Is it possible to create a Button control as a static property, via
the Form Designer, so that the instantiating code in the wizard
generated 'InitializeComponent()' need not to be modified?
I mean, I can add 'static' at the public declaration but then I also
need to change the auto-generated InitializeComponent() section
(remove the 'this') which is not advisable.
Any ideas? Thanks!
victor