|
Cet article a fait l'objet d'une traduction manuelle. Déplacez votre pointeur sur les phrases de l'article pour voir la version originale de ce texte.
|
Traduction
Source
|
Form.ActiveForm, propriété
Assembly : System.Windows.Forms (dans System.Windows.Forms.dll)
public void DisableActiveFormControls() { // Create an instance of a form and assign it the currently active form. Form currentForm = Form.ActiveForm; // Loop through all the controls on the active form. for (int i = 0; i < currentForm.Controls.Count; i++) { // Disable each control in the active form's control collection. currentForm.Controls[i].Enabled = false; } }
- UIPermission
pour demander un formulaire. Énumération associée : UIPermissionWindow.AllWindows.
Windows 7, Windows Vista SP1 ou ultérieur, Windows XP SP3, Windows XP SP2 Édition x64, Windows Server 2008 (installation minimale non prise en charge), Windows Server 2008 R2 (installation minimale prise en charge avec SP1 ou version ultérieure), Windows Server 2003 SP2
Le .NET Framework ne prend pas en charge toutes les versions de chaque plateforme. Pour obtenir la liste des versions prises en charge, consultez Configuration requise du .NET Framework.