Inherits Forms in the same project error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mat

    Inherits Forms in the same project error

    I would like to inherits some form in the same project. forms take
    arguments.
    but designer generate error:-(

    does any one have experience with that?


  • Armin Zingler

    #2
    Re: Inherits Forms in the same project error

    "Mat" <replytogroup@f uckSpam.COM> schrieb[color=blue]
    > I would like to inherits some form in the same project. forms take
    > arguments.
    > but designer generate error:-(
    >
    > does any one have experience with that?[/color]

    The base Form _must_ have a constructor without arguments. Otherwise the
    designer can't create it in order to display it because the designer can not
    know which arguments should be passed to the constructor.


    --
    Armin




    Comment

    • Herfried K. Wagner [MVP]

      #3
      Re: Inherits Forms in the same project error

      * "Mat" <replytogroup@f uckSpam.COM> scripsit:[color=blue]
      > I would like to inherits some form in the same project. forms take
      > arguments.
      > but designer generate error:-([/color]

      You will have to define a default constructor in the base form. This
      constructor will be required in order to be able to edit the form with
      VS.NET's form editor.

      --
      Herfried K. Wagner
      MVP ยท VB Classic, VB.NET
      <http://www.mvps.org/dotnet>

      <http://www.plig.net/nnq/nquote.html>

      Comment

      Working...