How To Center Align the Title Bar text In Windows Form?

前端 未结 4 888
不思量自难忘°
不思量自难忘° 2021-01-03 04:00

I am developing a Windows Form Application. I want to Align the Text to Center or say to Right of Title Bar of Form. How can I do it ??

4条回答
  •  南方客
    南方客 (楼主)
    2021-01-03 04:14

    Inside Windows Form Designer. Make the changes like this.lable1.AutoSize = false;

    Then:

    this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
    

提交回复
热议问题