I am developing a desktop application in C # Winforms where I implement a notification system that shows the amount of accumulated notifications.
My problem is that the label on the bell does not line up in the center
To give me to understand, I want to center the label as SO does with its reputation system
And for this he has used this code which the SO: Centering controls within a form in .NET (Winforms)?
this.CountLabel.Left = ((this.NotificationsBell.ClientSize.Width - this.CountLabel.Width) / 2);
But instead of centering my label, this is the result
So, how can I align my label from its center?
Note: NotificationsBell is the PictureBox with the image of the bell and CountLabel is the label with the number 100 and blue background