how to do Right Alignment?
-
Hi, i am making an application in which the label keeps scrolling up. The problem i have is i want to do right alignment so that i get "." in a sequence like Basket........... ball................ keyboard....... can anyone help me with this please!! i have tried this, but it isn't working for me, for (int u = textBox1.Length; u = 40 ; u++) { strDotsBuilder.Append("."); }
-
Hi, i am making an application in which the label keeps scrolling up. The problem i have is i want to do right alignment so that i get "." in a sequence like Basket........... ball................ keyboard....... can anyone help me with this please!! i have tried this, but it isn't working for me, for (int u = textBox1.Length; u = 40 ; u++) { strDotsBuilder.Append("."); }
-
Hi, i am making an application in which the label keeps scrolling up. The problem i have is i want to do right alignment so that i get "." in a sequence like Basket........... ball................ keyboard....... can anyone help me with this please!! i have tried this, but it isn't working for me, for (int u = textBox1.Length; u = 40 ; u++) { strDotsBuilder.Append("."); }
The only way I know to do that successfully is by selecting a monospaced font such as "Courier New", then append filler characters (for which string.PadRight is useful). :)
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
Local announcement (Antwerp region): Lange Wapper? 59.24% waren verstandig genoeg om NEEN te stemmen; bye bye viaduct.