2009-06-09 10 views

Répondre

1

Vous voulez dire quelque chose comme le contrôle StatusStrip?

0

.NET inclut une barre d'état. Vous pouvez le trouver sous Menu & Barre d'outils. C'est ce qu'on appelle StatusStrip.

0

Le contrôle s'appelle 'StatusStrip' et se trouve dans votre boîte à outils. Dans le cas contraire, vous pouvez le trouver sous le « System.Windows.Forms » espace de noms.

1

Il y a le contrôle StatusStrip, a trouvé dans la catégorie « Menus & Barres d'outils » dans la boîte à outils.

1

Si vous voulez de le faire manuellement, voici ce que vous devez faire:

using System; 
using System.Collections.Generic; 
using System.ComponentModel; 
using System.Data; 
using System.Drawing; 
using System.Linq; 
using System.Text; 
using System.Windows.Forms; 

namespace WindowsFormsApplication1 
{ 
    public partial class Form1 : Form 
    { 
    private System.Windows.Forms.StatusStrip statusStrip2; 

    public Form1() 
    { 
     InitializeComponent(); 

     this.statusStrip2 = new System.Windows.Forms.StatusStrip(); 
     this.SuspendLayout(); 
     this.statusStrip2.Location = new System.Drawing.Point(0, 251); 
     this.statusStrip2.Name = "statusStrip2"; 
     this.statusStrip2.Size = new System.Drawing.Size(292, 22); 
     this.statusStrip2.TabIndex = 0; 
     this.statusStrip2.Text = "statusStrip2"; 
     this.Controls.Add(this.statusStrip2); 

     this.PerformLayout(); 
    } 

    } 
} 
+0

ne pas oublier de Dock au fond –

+0

@Yadyn Un StatusStrip a sa propriété Dock mis à bas par défaut!.. –