"Wayne" <no**@some.isp> schrieb:
I have a winform that runs on its own, is it possible to wrap a
stand-alone winform in a class?
Windows Forms forms are already classes.
More accurately, is it possible to use a class to call an already
established winform?
You will have to make a reference to your instance of the Windows Forms form
available to the class. If you are instantiating your class from within
your form, you can add a property of the form's type to the class and set
this property to 'Me'. If there is only max. one instance of the form, you
can implement the singleton design pattern in order to easily access the
form's instance.
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>