2009-06-09 12 views
10

में स्टेटस बार मुझे स्टेटस बार लागू करने के लिए नियंत्रण नहीं मिल रहा है। मैं इसे मैन्युअल रूप से कैसे कर सकता हूं?सी # विंडोज फॉर्म

उत्तर

23

मुझे लगता है कि आप StatusStrip नियंत्रण की तलाश में हैं। यहां an article about it है।

और यहां एक MSDN article है।

1

आपका मतलब StatusStrip नियंत्रण जैसा कुछ है?

0

.NET में स्टेटसबार शामिल है। आप इसे मेनू & टूलबार के अंतर्गत पा सकते हैं। इसे स्टेटसस्ट्रिप कहा जाता है।

0

नियंत्रण को 'StatusStrip' कहा जाता है और यह आपके टूलबॉक्स में स्थित है। यदि ऐसा नहीं है तो आप 'System.Windows.Forms अंतर्गत देख सकते हैं "नाम स्थान।

1

StatusStrip नियंत्रण, में पाया है" टूलबॉक्स में मेनू & उपकरण पट्टियाँ "श्रेणी।

1

अगर आप चाहते हैं मैन्युअल रूप से ऐसा करने के लिए, यहाँ आप क्या करना होगा क्या करना है:

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

मत भूलना अपने डॉक संपत्ति डिफ़ॉल्ट रूप से ऊपर से नीचे की स्थापना की है नीचे –

+0

@Yadyn एक StatusStrip को डॉक में!।। –

संबंधित मुद्दे