private void btnaddnewitem_Click(object sender, EventArgs e)
        {
            this.Hide();
            formnewitem F = new formnewitem();

            F.ShowDialog();
        }
        private void btnregnew_Click(object sender, EventArgs e)
        {
            DialogResult dialogResult = MessageBox.Show("Item not found in the search box?\n\nInformation:\nRegister new item in the next form\nin order to be available in the database", "Inventory System Alert", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);

            if (dialogResult == DialogResult.Yes)
            {
                formnewitem DD = new formnewitem();
                DD.ShowDialog();
            }
            else if (dialogResult == DialogResult.No)
            {
                //do something else
            }
        }