I am looking to create a simple project but its turning out not to be so simple. The project I am trying to do is. If textboxA is a persons name, then I want to excute textboxB/10 and display the results in the label box on the form.
I try to code the button
for textboxA = Andrea
Then (labelA.text = textBoxB/10)
I am not able to compile the program because of the errors I get. Any help would be great.
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 Assignment2_White
{
public partial class Form1 : Form
{
public Form1()
{
String Andrea;
String A = Andrea;
InitializeComponent();
}
private void label4_Click(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
for textBox1= A;
label4.text = textBox2 / 10;
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
String Andrea;
String A = Andrea;
}
private void textBox2_TextChanged(object sender, EventArgs e)
{
}
}
}