using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApp45
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
public void pasif(bool onay,params Button[] btn)
{
if(onay==true)
for (int i = 0; i <= btn.Length-1; i++)
{
btn[i].Enabled = false;
}
}
private void Form1_Load(object sender, EventArgs e)
{
pasif(true, button2, button3, button4, button5);
}
}
}
Hiç yorum yok:
Yorum Gönder