Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I am usging VB .net

 

I have a base form that has mustoverride 's and thus mustinherit in the class definition.

 

Public MustInherit Class BasicForm
   Inherits System.Windows.Forms.Form

 

If i inherit from this class

 

Public Class SwitchBoard
   Inherits BasicForm

 

The designer (the thing in the IDE that let's you edit in WYSIWYG mode on forms) gives an error, for it tries to make an instance of basicform. I know it is an abstract class, just inherit from it, and show my switchboardclass !

 

How can this be fixed or worked around?

 

Is it clear what i am asking?

Posted
They trie to instantiate my abstract class when they want to display a derived class. They should only try to instatntiate the derived class, and just incorporate the data from its parent

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...