티스토리 뷰

C# 텍스트박스에서 텍스트 중앙에 정렬하는 코드 


textBox1.TextAlign = HorizontalAlignment.Center;



public void CreateMyPasswordTextBox() { // Create an instance of the TextBox control. TextBox textBox1 = new TextBox(); // Set the maximum length of text in the control to eight. textBox1.MaxLength = 8; // Assign the asterisk to be the password character. textBox1.PasswordChar = '*'; // Change all text entered to be lowercase. textBox1.CharacterCasing = CharacterCasing.Lower; // Align the text in the center of the TextBox control. textBox1.TextAlign = HorizontalAlignment.Center; }

댓글
최근에 달린 댓글
글 보관함
«   2025/01   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Total
Today
Yesterday
    뽀로로친구에디
    최근에 올라온 글