I suspect the button is just too small. Make it bigger, or make set AutoSize = true
(and place it within a container which has enough space, obviously).
Here's an example which works fine for me:
using System;
using System.Drawing;
using System.Windows.Forms;
public class Test
{
static void Main()
{
Form form = new Form {
Controls = {
new Button {
Text = "Click Me!",
AutoSize = true,
Location = new Point(10, 30)
},
}
};
Application.Run(form);
}
}
(Admittedly this sample works even with AutoSize = false
, so I suspect you've hard-coded the size somewhere... or your font is bigger. With longer text, it only works with AutoSize = true
or a manually specified size.)