Je ne trouve pas de contrôle pour implémenter une barre d'état. Comment puis-je le faire manuellement?Barre d'état dans C# Windows Forms
10
A
Répondre
23
Je pense que vous recherchez le contrôle StatusStrip. Voici an article about it. Il s'agit d'un MSDN article.
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();
}
}
}
Questions connexes
- 1. Windows Forms: Barre de progression sans réponse
- 2. Outlook 2007 TreeView dans Windows Forms (C#)
- 3. Filetage C# et Windows Forms
- 4. Comment utiliser Windows Forms dans une application C/C++?
- 5. Problème de déploiement Windows Forms C# .net
- 6. windows forms
- 7. Création d'un contrôle Windows Forms (C++)
- 8. Conception de Windows Forms
- 9. Impossible de déclencher l'événement MouseWheel dans C# Windows Forms
- 10. Contrôles personnalisés dans la question d'événement souris Windows Forms C#
- 11. Obtenir un contrôle Windows Forms par nom dans C#
- 12. Windows Forms, tutoriel?
- 13. Refactoring Application Windows Forms
- 14. Windows Forms Application Exceptions Trapping
- 15. Windows Forms ComboBox problème
- 16. Intégrer WPF et Windows Forms
- 17. AddMessageFilter sans Windows Forms?
- 18. .NET Windows Forms Refresh Control
- 19. C++ html forms
- 20. Zone de texte décimal dans Windows Forms
- 21. Nom de classe dans Windows Forms
- 22. Rich Text dans application Windows Forms
- 23. Java invokeLater() équivalent dans Windows Forms?
- 24. Index des onglets dans Windows Forms
- 25. WPF avec Windows Forms - STAThread
- 26. Windows Forms: zone de texte avec l'historique
- 27. C#/Windows Forms - Afficher un diaporama PowerPoint sans Office installé?
- 28. Spellchecker pour Windows Forms .NET
- 29. Windows Forms - Générateur de rapports
- 30. Windows Forms - Valider l'entrée DataGridView
ne pas oublier de Dock au fond –
@Yadyn Un StatusStrip a sa propriété Dock mis à bas par défaut!.. –