Hi,
Using the code given below the padding doesn't seem to be playing as it should, in theory the text "ADD this text" should start from column 21 in both the strings but in str2 it has a few extra spaces. On checking the length of both the strings the length turned out to be the same 20 as expected.
string str1 = "Test".PadRight(20);
string str2 = "Test123".PadRight(20);
string common = "Add this text";
MessageBox.Show(str1.Length.ToString());
MessageBox.Show(str2.Length.ToString());
MessageBox.Show(str1 + common + "\n" + str2 + common);
Anybody encountered this problem before? Is there something obvious I am missing.
Many Thanks.