Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,919 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
For example if the text if label1 is "Hello World"
Than I want the get the location of the middle of the label depending on the text inside so in this case the middle should be the space between Hello and World
This way I want to set the label location by finding the middle this will be the label center location.
Try setting the AutoSize property of the label to True, set the text, then use Width, Height or Size properties.