I am trying to align the text in a text box to the right. I realize I can just set the text align property to the right on the form but I want to be able to do this in my code. The C# command is
textBox1.TextAlign = HorizontalAlignment.Right;
I have tried the following:
set txt-TOTAL-BALANCE::TextAlign to new type System.Windows.Forms.HorizontalAlignment
But this does not specify left, center or right. I have also tried
set txt-TOTAL-BALANCE::TextAlign to new type System.Windows.Forms.TextBox, TextAlign(Right)
But this code is incorrect and will not compile.