Button & Labels text Anti-aliasing Problem using Windows Forms C#

Jun 18, 2023
Reaction score
Hello, Please Help
I'm facing a problem using Windows Forms with all the texts in controllers ( Button, labels, etc...),
all texts are facing aliasing I tried all the solutions that I found as follows:

private void SelectBtn_Click(object sender, EventArgs e)
SelectBtn.UseCompatibleTextRendering = false;
PaintEventArgs pe = e as PaintEventArgs;
pe.Graphics.TextRenderingHint = TextRenderingHint.AntiAlias;
pe.Graphics.DrawString(SelectBtn.Text, SelectBtn.Font,
SystemBrushes.ControlText, SelectBtn.ClientRectangle);
and still facing the same problem and I'm already ended my project I've been working for 6 weeks till now

App PrtScreen.PNG
Design PrtScreen.PNG

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question