IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası

IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası (https://www.ircforumlari.net/)
-   Visual Basic (https://www.ircforumlari.net/visual-basic/)
-   -   Visaul Basic Aktif Forumu Renk değiştirme (https://www.ircforumlari.net/visual-basic/718438-visaul-basic-aktif-forumu-renk-degistirme.html)

Kaf_Dağı 07 Aralık 2015 16:00

Visaul Basic Aktif Forumu Renk değiştirme
 
Kod:

Visaul Basic Aktif Forumu Renk değiştirme

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace menuPencere
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        static int formno = 1;
        private void açToolStripMenuItem_Click(object sender, EventArgs e)
        {
          // çocuk formunun FormCocuk isminde bir örneği oluşturuluyor
            cocuk FormCocuk = new cocuk();
            // oluşturulan Formçocuk formunun atası olarak this yani form1 belirtiliyor
            FormCocuk.MdiParent = this;
           
          // form başlıklarını ayarlıyoruz. otomatik olarak 1 artırıyoruz
            FormCocuk.Text = "Form "+formno.ToString();
            formno++;
           
            // FormCocuk formu ekranda gösteriliyor.
            FormCocuk.Show();
        }

        private void sıralaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            // bu formdaki mdi formların yerleşimi sıralı olarak ayarlanıyor
            this.LayoutMdi(MdiLayout.Cascade);
        }

        private void yatayYerleştirToolStripMenuItem_Click(object sender, EventArgs e)
        {
            // bu formdaki mdi formların yerleşimi yatay olarak ayarlanıyor
            this.LayoutMdi(MdiLayout.TileHorizontal);
        }

        private void dikeyYerleştirToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.LayoutMdi(MdiLayout.TileVertical);
        }

        private void maviToolStripMenuItem_Click(object sender, EventArgs e)
        {
            // açık olan pencerelerden seçili olanın zemin rengini mavi yap
            this.ActiveMdiChild.BackColor = Color.Blue;
        }

        private void renkToolStripMenuItem1_Click(object sender, EventArgs e)
        {
          // renk seçim penceresini aç ve renk seçilip tamama tıklatılmışsa
            if (colorDialog1.ShowDialog()==DialogResult.OK)
            {
                // aktif formun zemin rengini seçilen renk olarak ayarla
                this.ActiveMdiChild.BackColor = colorDialog1.Color;
            }
        }
     
    }

}

07.12.2015 Kaf_Dağı - Görsel Proğramlama


Tüm Zamanlar GMT +3 Olarak Ayarlanmış. Şuanki Zaman: 21:20.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO
Copyright ©2004 - 2025 IRCForumlari.Net Sparhawk