|
Cet article a fait l'objet d'une traduction automatique. Déplacez votre pointeur sur les phrases de l'article pour voir la version originale de ce texte. Informations supplémentaires.
|
Traduction
Source
|
Control.TabIndex, propriété
Espace de noms : System.Windows.Forms
Assembly : System.Windows.Forms (dans System.Windows.Forms.dll)
Valeur de propriété
Type : System.Int32// Add a button to a form and set some of its common properties. private void AddMyButton() { // Create a button and add it to the form. Button button1 = new Button(); // Anchor the button to the bottom right corner of the form button1.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right); // Assign a background image. button1.BackgroundImage = imageList1.Images[0]; // Specify the layout style of the background image. Tile is the default. button1.BackgroundImageLayout = ImageLayout.Center; // Make the button the same size as the image. button1.Size = button1.BackgroundImage.Size; // Set the button's TabIndex and TabStop properties. button1.TabIndex = 1; button1.TabStop = true; // Add a delegate to handle the Click event. button1.Click += new System.EventHandler(this.button1_Click); // Add the button to the form. this.Controls.Add(button1); }
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (rôle principal du serveur non pris en charge), Windows Server 2008 R2 (rôle principal du serveur pris en charge avec SP1 ou version ultérieure ; Itanium non pris en charge)
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.