當前位置:編程學習大全網 - 網絡軟體 - 怎樣讓form窗體標題左對齊

怎樣讓form窗體標題左對齊

壹般情況下,窗口標題欄的文字都是左對齊的,也就是顯示在最左邊,如果不是,實現方法如下:內置的屬性設置代碼,可參考下面這個代碼片段:

01 private void InitializeComponent()

02 {

03 this.SuspendLayout();

04 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);

05 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;

06 this.BackgroundImage = global::WindowsTitleleft.Properties.Resources.

背景 2;

07 this.ClientSize = new System.Drawing.Size(248, 144);

08 this.Name = "Form1";

09 this.RightToLeft = System.Windows.Forms.leftToright.Yes;

10 this.Text = "標題欄文字左對齊";

11 this.ResumeLayout(false);

12 }

  • 上一篇:勇者之路精靈物語哪個精靈最好
  • 下一篇:具有時代特色的旅遊紀念品有哪些具有時代特色的旅遊紀念品
  • copyright 2024編程學習大全網