Results 1 to 5 of 5

Thread: inheriting 2 base classes, is this possible????

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 1999
    Location
    England
    Posts
    982

    inheriting 2 base classes, is this possible????

    Am I right in my understanding that a custom class cannot inherit 2 base calsses.


    Things I do when I am bored: DotNetable

  2. #2
    Junior Member ost's Avatar
    Join Date
    Jan 2004
    Posts
    19
    yes.. you can only inherit from one class

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Oct 1999
    Location
    England
    Posts
    982
    So what I want to do is create wrapper classes for the printdocument class adding printing routines relevant to my application but I also want to incorporate printpreviewdialog and pagesetupdialog in the class but also expose the events of these classes.

    Is the only way to do this via seperate classes i.e. a wrapper class for printpreviewdialog and a wrapper class for printdocument or is there another way.


    Things I do when I am bored: DotNetable

  4. #4
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    HI,

    Always search the forum before posting a new thread.

    See

    http://www.vbforums.com/showthread.p...nested+classes

    especially the last two posts.
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Oct 1999
    Location
    England
    Posts
    982
    Thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


    Things I do when I am bored: DotNetable

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width