Just wondering, how do I center the text in a label that is changed by variables, I want to have it set in the top middle of my form, but I have no idea how to do it. C++ .NET in Visual studio, thanks ahead of time.
Printable View
Just wondering, how do I center the text in a label that is changed by variables, I want to have it set in the top middle of my form, but I have no idea how to do it. C++ .NET in Visual studio, thanks ahead of time.
Set the label's AutoSize property to false (that's basically the trick to know here), adjust its size and position as desired at design time and set its TextAlign property to one of the three options that end with "Center".
Oh, never thought about autosize... Thanks =D