Here is source code of the C# Program to Perform Addition with MOUSEUP Event. The C# program is successfully compiled and executed with Microsoft Visual Studio. The program output is also shown below.
* C# Program to Perform Addition with MOUSEUP Event
public partial class Form1 : Form
private void button1_MouseUp(object sender, MouseEventArgs e)
add = Convert.ToInt32(textBox1.Text) +Convert.ToInt32(textBox2.Text);
textBox3.Text = Convert.ToString(add);
MessageBox.Show("Addition is performed with MouseUp Event");
Here is the output of the C# Program:
Sanfoundry Global Education & Learning Series – 1000 C# Programs.