🙂 İNSANLARIN EN HAYIRLISI INSANLARA FAYDALI OLANDIR 🙂

Ramazan HABER / C# RMOS / Formu sol üst köşede açma ve diğer formu onun yanında açma ve Formu öne getirme

1-) C# RMOS - Formu sol üst köşede açma ve diğer formu onun yanında açma

 

using System;

using System.Drawing;

using System.Windows.Forms;

 

namespace Ornek

{

    public partial class Form1 : Form

    {

        public Form1()

        {

            InitializeComponent();

            this.StartPosition = FormStartPosition.Manual;

            this.Location = new Point(0, 0);

        }

 

        private void button1_Click(object sender, EventArgs e)

        {

            Form2 nForm = new Form2();

            nForm.Show();

            nForm.SetDesktopLocation(this.Location.X + this.Size.Width, this.Location.Y);

        }

 

        private void Form1_Load(object sender, EventArgs e)

        {

 

        }

    }

}

 

 

2-) Minimize olmuş formu tekrardan açma formu öne getirme

nForm.WindowState = FormWindowState.Normal;

 2021 Ocak 18 Pazartesi
 446