A Bug Related To Form Constructor

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • maheshwag
    New Member
    • Aug 2010
    • 71

    A Bug Related To Form Constructor

    Passing a reference to the Form Constructor is it a Bug?

    e.g.

    Code:
    Form4 form4
    Public Form1(Form4 form4)
    {
     this.form4=form4;
     InitializeComponent();
    
    }
    it's cause a "Overload Method Error".
    Last edited by Niheel; Jun 19 '11, 04:21 PM.
  • code green
    Recognized Expert Top Contributor
    • Mar 2007
    • 1726

    #2
    The Form class constructor does not take parameters, so to the compiler you are using an overload method.

    Comment

    • Curtis Rutland
      Recognized Expert Specialist
      • Apr 2008
      • 3264

      #3
      You need to show more of your code. That by itself is not an error.

      Comment

      Working...