السلام عليكم ورحمه الله وبركاتة
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Random ran = new Random();
label1.Text = "";
for (int x =1; x <= 5; x++)
{
int counter = ran.Next(10);
label1.Text += counter;
}
}InitializeComponent(); method is used to reset commandtype,trasaction,commandtimeout and
updaterowsource whaen we work with database
but now we dont.what this method do?it's work here????)
رمضان كريم