Yazı Font Küçült Yazı Font Büyült

Form Soldurma

Formunuza 1 adet button ekleyin. Aşağıdaki kodları yazın.

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 WindowsFormsApplication1
{
   
    public partial class Form1 : Form
    {
      
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
         double deger;
         for (deger = 0; deger >= 1 - 0.1; deger += +0.1)
         {
             System.Threading.Thread.Sleep(50);
             Application.DoEvents();
             this.Opacity = deger;
             this.Refresh();
             this.Opacity = 100;

         }     
   
          }

        private void button1_Click(object sender, EventArgs e)
        {
           double deger;
         for (deger = 3; deger >= 0 + 0.2; deger += -0.2) {
         System.Threading.Thread.Sleep(50);
         Application.DoEvents();
         this.Opacity = deger;
         this.Refresh();
     }
     Environment.Exit(0);
         }
        }
          
 }
       
  
//Bir sonraki makalede buluşmak üzere. Bahadır