Beispiel #1
0
        private void ShowNewForm(object sender, EventArgs e)
        {
            AddCategory ac = new AddCategory();

            ac.MdiParent     = this;
            ac.StartPosition = FormStartPosition.Manual;
            ac.Location      = new Point(Location.X + (Width - ac.Width) / 2, Location.Y + (Height - ac.Height) / 2);
            ac.Show();
        }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            AddCategory ac = new AddCategory();

            ac.Show();
        }