Salami Dobare O Khaste Nabashid Khedmate Doostane Golam.
Khob Mikham Behetoon Yad Bedam Ke Chetor Ba Yek Dastoore Kootah Betoonid
Kolle Control Haye Form , Ya GroupboX Ya Tab Ya .... Ro Gheire Fa'aal Konid.
ShayAd Ye Shart Bekhayd Tooye Formetoon Bezarid Ke Masalan Age Injoori Nashod
Bia:
Button1.enabled = False;
Button2.enabled = False;
Button3.enabled = False;
Textbox1.enabled = False;
Textbox2.enabled = False;
....
Niazi Be In Hame Code Nevisi Nist
Mesal:
- Code:
private void Form1_Load(object sender, EventArgs e)
{
foreach (Control Mehdi in this.Controls)
{
Mehdi.Enabled = false;
}
}
tooye Code Bala Ba Form Load Tamame Control Ha ( This ) Enbaled = False Mishavand.
Shoma Mitoonid Az In Ravesh Dar Shart Hatoon Estefade Konid.
Age Khastid Kolle Control Haye Groupbox Ya ... Ro Enabled=False Koni Faghat Kafie Ke
Be Jaye This , Esme Groupbox Etoon Ro Benevisid.
Movafagh Bashid.
Manba: [You must be registered and logged in to see this link.]