Statement checker c# using forms and frontend I'm just here for suggestions and code optimisations, what i could've done better, are there any better coding practices...
There's github repo link if you're interested in the code with a form too https://github.com/throtz/Operators
You basically have 2 textboxes in which you enter numbers and choose with a combobox what you want to do with those two numbers.
using System;
using System.Windows.Forms;

namespace Operators
{
    public partial class Operators : Form
    {
        public Operators()
        {
            InitializeComponent();
        }
        private void Form1_Load_1(object sender, EventArgs e)
        {
            comboBox.Items.AddRange(new string[] { &quot;+&quot;, &quot;-&quot;, &quot;*&quot;, &quot;/&quot;, &quot;%&quot;, &quot;&gt;&quot;, &quot;&lt;&quot;, &quot;=&quot;, &quot;&gt;=&quot;, &quot;&lt;=&quot; });
        }
        private void ButtonCheck_Click_1(object sender, EventArgs e)
        {
            if (sender is null)
            {
                throw new ArgumentNullException(nameof(sender));
            }

            int a = Convert.ToInt32(textBox1.Text);
            int b = Convert.ToInt32(textBox2.Text);

            Nah(a, b);
        }
        private void Nah(int a, int b)
        {
            switch (comboBox.SelectedItem.ToString())
            {
                case &quot;+&quot;:
                    MessageBox.Show(&quot;Sum of thenumbers entered is: &quot; + (a + b));
                    break;
                case &quot;-&quot;:
                    MessageBox.Show(&quot;Subtraction of the numbers entered is: &quot; + (a - b));
                    break;
                case &quot;*&quot;:
                    MessageBox.Show(&quot;Multiplication of the numbers entered is: &quot; + (a * b));
                    break;
                case &quot;/&quot;:
                    MessageBox.Show(&quot;Division of the numbers entered is: &quot; + (a / b));
                    break;
                case &quot;%&quot;:
                    MessageBox.Show(&quot;Modulo the two numbers is: &quot; + (a % b));
                    break;
                case &quot;&gt;&quot;:
                    MessageBox.Show(&quot;First number is bigger than the secound one &quot; + (a &gt; b));
                    break;
                case &quot;&lt;&quot;:
                    MessageBox.Show(&quot;First number is smaller than the secound one &quot; + (a &lt; b));
                    break;
                case &quot;=&quot;:
                    MessageBox.Show(&quot;Numbers are equal: &quot; + (a == b));
                    break;
                case &quot;&gt;=&quot;:
                    MessageBox.Show(&quot;First number is bigger or equal to number two &quot; + (a &gt;= b));
                    break;
                case &quot;&lt;=&quot;:
                    MessageBox.Show(&quot;First number is smaller or equal to number two &quot; + (a &lt;= b));
                    break;
                default:
                    MessageBox.Show(&quot;Illegal operation.&quot;);
                    break;
            }
        }
    }
}
Review
It seems that you are trying to make a simple calculator with number comparison in C#. There are some problems in this implementation.
ToInt32:
Do you expect the input of calculation is always in int format? How
about floating numbers?
Nah method:

Naming:
I have no idea how's the name Nah imply the operation in the method. Something like run or perform are better than Nah.

Integer Division:
Notice that the execution of 3 / 2 in this implementation is 1.
It is a kind of integer division. Is the integer division result
the correct output you expected?

MessageBox.Show Part:
In C# 6, you can use string interpolation and make MessageBox.Show(&quot;Sum of thenumbers entered is: &quot; + (a + b)); into MessageBox.Show($&quot;Sum of thenumbers entered is: {(a + b)}&quot;);. Interpolated strings are useful in string displaying and it's commonly used with Console.WriteLine or MessageBox.Show.


Error Handling

Null or empty string:
You use textBox1.Text and textBox2.Text as a way to read numbers from user input. How about the case of empty strings (user click button Check directly without type any character)? If textBox.Text passes in Convert.ToInt32 directly and the content is empty, System.FormatException will occur. Maybe String.IsNullOrEmpty check can be used here.

DivideByZeroException
DivideByZeroException Class can be used to handle an attempt to divide an number by zero.