I have been trying for a little while now how to convert this. How would you cast this in windows forms?
It doesnt seem to work like normal console applications....
Sorry if this seems dumb but I don't understand it.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication3
{
public partial class Form1 : Form
{
float input1 = 0;
float input2 = 0;
float output = 0;
int c = 0;
public Form1()
{
InitializeComponent();
}
private void button10_Click(object sender, EventArgs e)
{
textBox1.AppendText("0");
}
private void button11_Click(object sender, EventArgs e)
{
textBox1.Clear();
}
private void button17_Click(object sender, EventArgs e)
{
textBox1 = output;
}
private void button12_Click(object sender, EventArgs e)
{
switch(c)
{
case '+':
output = input1 + input2;
break;
}
}