José
Fri Jun 25 09:22:04 CDT 2004
I guess I'll have to give this another try... thanks, José.
"Sahil Malik" <nospam@ms.com> wrote in message
news:uUL%231XnWEHA.2908@TK2MSFTNGP10.phx.gbl...
> It is important because .NET IDE runs the control's code, and if it
> encounters "parent", parent doesn't exist and it gets confused. Not only
> that, if you have a custom paint event that occurs on some UI feedback,
then
> that might crash the IDE too (some stackoverflow exception cuz it goes in
a
> infinite paint loop .. dunnow why .. details aren't documetned/published
no
> way to find out either for sure).
>
> Abstract base class - Yes I have.
>
> --
> - Sahil Malik
> Independent Consultant
> You can reach me thru my blog at -
>
http://www.dotnetjunkies.com/weblog/sahilmalik/
>
>
>
> "José Araujo" <josea@mcrinc.com> wrote in message
> news:ODdpelgWEHA.2340@TK2MSFTNGP09.phx.gbl...
> > How is that important?
> >
> > And i think that is something pretty common...
> >
> > BTW: have you accomplished using abstract classes for forms + IDE
before?
> >
> > José.
> >
> > "Sahil Malik" <nospam@ms.com> wrote in message
> > news:u43xcDXWEHA.716@TK2MSFTNGP11.phx.gbl...
> > > Within your MyBaseForm, or MyDerivedForm, do you have a reference to
> > > "parent" ? That includes Anchor or Dock !!
> > >
> > > - Sahil Malik
> > > Independent Consultant
> > > You can reach me thru my blog -
> >
http://dotnetjunkies.com/WebLog/sahilmalik/
> > >
> > >
> > >
> > > "Deena" <dgovender@absolutesys.com> wrote in message
> > > news:eYo0odTWEHA.1652@TK2MSFTNGP09.phx.gbl...
> > > > Hi
> > > >
> > > > I create a abstract base class("MyBaseForm") which extends
> > > > System.Windows.Forms.Form class. I add buttons,.... . I then extend
> > > another
> > > > class("MyDerivedForm") from "MyBaseForm". This compiles fine, runs
> fine
> > > but
> > > > as soon as I double click - MyDerivedForm - to view the form in the
> IDE
> > > > designer - the IDE designer gives me an error.
> > > >
> > > > Is the a bug? I saw a similar post earlier with no suitable
> explanation.
> > > > This is basically what we are trying to do. Create a base class with
> > > > something like this:
> > > >
> > > > namespace MyFormClassLibrary
> > > > {
> > > > public abstract class MyBaseForm : System.Windows.Forms.Form
> > > > {
> > > > public MyBaseForm ()
> > > > {
> > > > }
> > > >
> > > > }
> > > > }
> > > >
> > > > Then create another Form and change the superclass from
> > > > "System.Windows.Forms.Form " to the "MyPage" class created above:
> > > >
> > > > namespace MyFormClassLibrary
> > > > {
> > > > public class MyDerivedForm : MyBaseForm
> > > > {
> > > > public MyDerivedForm()
> > > > {
> > > > }
> > > >
> > > > }
> > > > }
> > > >
> > > > Is there a fix for the IDE?
> > > >
> > > >
> > >
> > >
> >
> >
>
>