C# graphics, paint, picturebox centering
问题 Ok, so this is the problem: in C# forms I've created a new private void: private void NewBtn(string Name, int x, int y) Which has a purpose of creating a picturebox that imitates behavior of a button (don't ask why, I simply enjoy complicating things) and can be called as many times as I want. Font btnFont = new Font("Tahoma", 16); PictureBox S = new PictureBox(); S.Location = new System.Drawing.Point(x, y); S.Paint += new PaintEventHandler((sender, e) => { e.Graphics.TextRenderingHint =