简体   繁体   中英

How to inheritance a window Form from another window Form in C#.Net

I am trying to inheritance a window form from another window form in C#.Net, but got Errors

My First From

   public partial class Checkout : Form
{
    public Checkout()
    {
        InitializeComponent();
       
    }
    


    private void textBox3_TextChanged(object sender, EventArgs e)
    {

    }

}

2nd From Code to which i want to make inherited Form of First Form

public partial class OnwerPermission : Checkout
    {
        public OnwerPermission()
        {
            InitializeComponent();
        }
}

Got this error

在此处输入图像描述

You can try doing this:

  1. Close all the UI design pages
  2. Clean Solution
  3. Rebuild Solution
  4. Try to open your form again

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM